style.css파일생성

@charset "utf-8";

/* selector 요소선택 {style attribute 스타일속성: style value 스타일 값;} 에서 {}는 style block */

* {margin: 0; padding: 0;}

h2 {background: #545454}

video { width: 350px; }

 

space.css 파일 생성

@charset "utf-8"

 

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@100;700&display=swap');

div { height100pxbackground#fc0;}

span { height100pxbackground#f00;}

p { font-family'Noto Sans KR'sans-seriffont-size:42pxfont-weight100;}

.h { display:inlinefont-weight700background#fff;}

article {width300pxheight450pxbackground#fffcce;}

article h3 { font-size30pxcolorrgb(1587729); text-aligncenterpadding-top20px;}

.shiba {backgroundburlywood;}

article div { width90%height:300pxmargin0 autobackgroundnone;}

article div img { width100%;}

article div p { font-size16px;}

article div p span { colorrgb(1266135); }

article a {display:blockwidth:50%margin:0 auto;padding10pxcolorwhitetext-aligncenterbackgroundbrown;}

 

 

<link rel="stylesheet" href="./css/space.css">를 사용하여 html에 적용.

'Coding' 카테고리의 다른 글

html 선수학습(5)  (0) 2021.07.07
html 선수학습(4)  (0) 2021.07.06
html 선수학습(3)  (0) 2021.07.05
html 선수학습(2)  (0) 2021.07.01
html 선수학습  (0) 2021.06.30

+ Recent posts