728x90
1. reset.css
reset์ ๋ณดํต ๊ฐ์ฅ ๋ง์ด ์ฌ์ฉ๋๋ Eric Meyer's ์ Reset CSS 2.0์์ css๋ฅผ ์ถ๊ฐํด์ ์ฌ์ฉํ๋ค.
/* http://meyerweb.com/eric/tools/css/reset/
v2.0 | 20110126
License: none (public domain)
*/
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
margin: 0;
padding: 0;
border: 0;
font-size: 100%;
font: inherit;
vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
display: block;
}
body {
line-height: 1;
}
ol, ul {
list-style: none;
}
blockquote, q {
quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
content: '';
content: none;
}
table {
border-collapse: collapse;
border-spacing: 0;
}
/* added */
a,
button,
input,
textarea { color: inherit; font-size: inherit; font-family: inherit; }
a { text-decoration: none; }
button { cursor: pointer; border:none; background: transparent; }
ul,
li { list-style: none; }
strong,
b { font-weight: normal; }
2. ๊ทธ ์ธ
2-1. ๊ธ์์ ์ ํ ... ์ฒ๋ฆฌ
.text_overflow {
width: 200px; /* ๊ธธ์ด์ ๋ง๊ฒ ์ปค์คํ
*/
height: 20px; /* ๊ธ์์ฌ์ด์ฆ์ ๋ง๊ฒ ์ปค์คํ
*/
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
2-2. flex
.flex_box {
display: flex;
justify-content: center;
align-items: center;
}
2-3. background gradient
.bg_gradient {
background: orange;
background: linear-gradient(45deg, orange, lightgreen);
}
๊ทธ ์ธ ์ผ ํ๋ฉด์ ์ผ๊ธ์ผ๊ธ ์ถ๊ฐํ ์์ ์ ๋๋ค. ^^!
๋ฐ์ํ
'๊ฐ๋ฐ ๐พ > HTML,CSS' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
๊ฐ์ด๋ฐ์ ์ข์ฐ๋ก ํผ์ณ์ง๊ฒ ํ๊ธฐ (0) | 2021.06.13 |
---|---|
์ฒดํฌ๋ฐ์ค CSS ์ปค์คํ (0) | 2021.06.06 |
CSS ํจํด ์ด์ผ๊ธฐ - BEM, SMACSS, OOCSS (0) | 2021.02.07 |
ํญ ๊ตฌํํ๊ธฐ - html, css, jquery (0) | 2021.02.03 |
๋ชจ๋ฐ์ผ๊ฐ๋ฐ์ ์์์ฃผ๋ฉด ์ข์ HTML/CSS (0) | 2019.11.18 |