카테고리 없음

[웹1]240126-12일차(flex, vscode 시작)

yeanana 2024. 1. 26. 12:45

[코드펜 열기]

https://codepen.io/pen

 

Create a New Pen

Behavior Auto Save If active, Pens will autosave every 30 seconds after being saved once. Auto-Updating Preview If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update. Format on Save If enabled, your co

codepen.io

 

 

https://codepen.io/limyena/pen/bGZYdMQ

 

flex-grow

...

codepen.io

 

 

flex-item은 row값일때 width: auto = 0이다.

 

flex-grow : 너비를 비율에 맞춰 나누어준다.

정렬은 flex-container

너비높이는 flex-item

그래서 flex- grow는 flex-item에 적용

 

https://codepen.io/limyena/pen/MWxOwdw

 

flex-grow 비율 망가짐 방지(flex-basis)

...

codepen.io

 

flex-grow를 사용하게되면 하위요소 크기에 따라 비율이 달라진다.
방지하는 방법은 flex-grow와 flex-basis: 0;을 함께 사용하면 된다.
flex-basis: 0;과 width: 0;은 비슷한 역할을 하게되는데 반응형 할때
불편하게 때문에 width: 0;말고 flex-basis: 0;을 활용하는것이 좋다.

flex-grow와 flex-basis: 0;을 함께 사용

 

[vscode 설치]

체크박스 전부 체크

한글팩 다운로드 및 재실행

설정창 단축키 ctrl+, (컨트롤+콤마)

사용하는데 불편하니 제거하는게 좋음

 

파일 : 어떤파일인지 구분하기 위해 확장자가 붙어있는 것들

폴더 : 파일을 정리할 수 있는 것들

->vscode에서는 폴더를 열고 그 안에서 파일을 만들어서 사용해야한다.

[확장자]

.jpg

.png

.psd

.exe

.ai

.txt

.html

.css

.js

.zip

바탕화면에 새폴더 (폴더명 : docs) 로 만들고

새폴더 생성

파일 -> 폴더열기 -> docs선택-> 파일생성

 

[코드제출 링크]

https://docs.google.com/document/d/1AOOYumla_bS5C6hfQXv_S8IyZ8du-e6CrV5XgdcqtkM/edit#heading=h.jr7q7ojnq2ll

 

코드 제출

 

docs.google.com

 

[코드제출 북마크 등록]