Web Programming Unit F IC1 StylesCSS
Web Programming Unit F IC1 StylesCSS
Author:
Date:
HTML5 and CSS3 Illustrated Unit F, Independent Challenge 1
*/
/* reset styles */
html {
font-size: 12px;
}
article, body, div, footer, header, h1, h2, h3, nav, p {
border: 0;
padding: 0;
margin: 0;
}
/* global styles */
p {
margin: 0.4em 0;
font-size: 1.2em;
}
/* header section */
header {
padding: 0.5em;
background-color: yellow;
text-align: center;
}
h1 {
font-weight: 700;
font-size: 3em;
}
header p {
color: rgb(241,90,36);
}
/* Site Navigation */
nav.sitenavigation {
background-color: rgb(241,90,36);
text-align: center;
}
nav.sitenavigation p {
display: inline-block;
margin: 0.4em 0.6em;
font-size: 1.6em;
}
nav.sitenavigation a:link {
color: yellow;
text-decoration: none;
}
nav.sitenavigation a:visited {
color: white;
}
nav.sitenavigation a: hover, nav.sitenavigation a:focus {
color: yellow;
text-shadow: 1px -1px 0 black;
}
nav.sitenavigation a:active {
position: relative;
top: 1px;
left: 1px;
}
/* main content */
article {
max-width: 400px;
padding: 10px;
margin: 1em auto;
text-align: center;
background-color: rgb(255,255,255);
}
h2 {
margin: 0 0 0.4em;
font-size: 2.4em;
font-weight: 700;
}
/* footer section */
footer {
padding: 0.5em;
background-color: yellow;
text-align: center;
}
/* print styles */
@media print {
.container, h1, h2, header p, p {
color: black;
background-color: white;
}
}
@page {
margin: 1in;
}