Three important properties control the space that surrounds each HTML element: padding, margin, and border.
css selection priority
class < id < inline style < !important
colors can be represented by 3 ways:
color name ex. color: red;
hexdeciaml ex. color: #ff0000; (red green blue, two placement per color)
rgb(0,0,0) method ex. color: rgb(255, 0, 0);
you can create css variable by following:
--penguin-skin : gray;
can apply created css variable by :
background-color : var(--penguin-skin);
To make use of inheritance, CSS variables are often defined in the :root element.
(not sure) add this to resize, redecorate css according to size:
@media (max-width: 350px) {
:root {
/* add code below */
--penguin-size: 200px;
--penguin-skin: black;
/* add code above */
}
}
'IT > ETC' 카테고리의 다른 글
android studio(2/03/20~2/04/20 cudo notes 3) (0) | 2020.02.03 |
---|---|
Applied Visual Design (0) | 2020.02.02 |
FileZilla connect using .ppk(01/31/20 cudo notes2) (0) | 2020.01.31 |
Writing Shell script 1 (0) | 2020.01.30 |
Linux commands 1 (0) | 2020.01.30 |