(pre) History of web design
The car at day 10.000
The TV at day 10.000
The phone at day 10.000
Andrei at day 10.000
(BODY fontSize=normal
BGColor=white
FGColor=black
(H1 fontSize=largest
BGColor=red
FGColor=white)
)
First styling language
<LINK REL="STYLE" HREF="URL_to_a_stylesheet">
Referencing external stylesheets
1993 - Mosaic browser - first commercial browser
1995 - Netscape and Internet Explorer
// HTML
<!-- Separate CSS File -->
<link href="styles.css" rel="stylesheet" media="all and (max-width: 1024px)">
// CSS
/* @media Rule */
@media all and (max-width: 1024px) {...}
/* @import Rule */
@import url(styles.css) all and (max-width: 1024px) {...}
@media screen and ( min-width: 500px ) and ( max-width: 800px ) {
/* CSS declarations */
}
media_feature: width | min-width | max-width | height | min-height | max-height | aspect-ratio | min-aspect-ratio | max-aspect-ratio | color | min-color | max-color | color-index | min-color-index | max-color-index | monochrome | min-monochrome | max-monochrome | resolution | min-resolution | max-resolution | scan | grid
media_type: all | aural | braille | handheld | print | projection | screen | tty | tv | embossed | speech
@media screen and ( min-width: 500px ) and ( max-width: 800px ) {
img {
border: 5px solid #!f;
}
}
<img
srcset="
/wp-content/uploads/picture4x.jpg 4025w,
/wp-content/uploads/picture3x.jpg 3019w,
/wp-content/uploads/picture2x.jpg 2013w,
/wp-content/uploads/picture1x.jpg 1006w
"
src="/wp-content/uploads/flamingo-fallback.jpg"
>
<meta name="viewport" content="width=device-width, initial-scale=1">
inline | block | flex | inline-block | inline-flex | inline-table | list-item | run-in | table | table-caption | table-column-group | table-header-group | table-footer-group | table-row-group | table-cell | table-column | table-row | none | initial | inherit
#main {
max-width: 600px;
margin: 0 auto;
}
div {
width: 300px;
height: 200px;
padding: 15px;
border: 5px solid gray;
margin: 30px;
box-sizing: content-box;
}
div {
width: 300px;
height: 200px;
padding: 15px;
border: 5px solid gray;
margin: 30px;
box-sizing: border-box;
}
img {
float: right;
margin: 0 0 1em 1em;
}
.clearfix:after {
content: "";
display: table;
clear: both;
}
nav {
float: left;
width: 200px;
}
section {
margin-left: 200px;
}
nav {
float: left;
width: 25%;
}
section {
margin-left: 25%;
}
nav {
display: inline-block;
vertical-align: top;
width: 25%;
}
.column {
display: inline-block;
vertical-align: top;
width: 75%;
}
padding
line-height
transform
.element {
position: relative;
top: 50%;
transform: translateY(-50%);
}
.middle {
display: table-cell;
vertical-align: middle;
}