css

피치자몽·2021년 7월 8일
0

css

목록 보기
1/1

공통 - 초기화

  1. 저장소 만들고, git init, git status로 확인 후 untracked files뜨면
  2. git add {해당폴더}, git log로 확인
  3. git commit -m "commit message"
  4. 원격 저장소 연결, git remote add origin 저장소 클론으로 복사한 https 주소
  5. git push -u origin master

추가 - 웹서버 설정할 때 처음 한 번 하는 일

.gitlab-ci.yml 파일 내용

pages:
  stage: deploy
  script:
  - echo 'Nothing to do...'
  artifacts:
    paths:
    - public
  only:
  - master
git add .gitlab-ci.yml
git commit -m "add .gitlab-ci.yml"

CSS를 실행하는 방법

style 속성
*style 속성 구분은 세미콜론 ‘;’으로 한다.

    <li style="color:red">js</li>

style 태그

<style>
        li {
            text-decoration: underline;
        }
    </style>

div , GRID

<!DOCTYPE html>
<html>

<head>
    <style>
        div{
            border: 5px solid red;
        }

        #container{
            display:grid;
            grid-template-columns:1fr 2fr 1fr;
        }
    </style>
</head>

<body>
    <header>

    </header>
    
    <div id="container">
        <div>left</div> 
        <div>center</div>
        <div>right</div>
    </div>
    <footer>

    </footer>
</body>


</html>
profile
저는 웹개발 왕이 될거에요

0개의 댓글