p { left-margin: 2em; }
sets the left margin for the paragraph element to 2em
.
3em
? Remember that browsers have default spacing.
p {
word-spacing: 3em;
}
This would be the result of the above code!
body { background: url(bluetile.jpg) repeat; }
position: absolute; top: 140px;
/* Stylesheet created for Projection screen and for Printing */
body {
background-color: #fff;
color: #000;
}
/* Start Projector Styles */
@media projection {
body {
font-family: Arial, Sans-Serif;
}
h1, h3 {
background-color: inherit;
color: #ff0000;
}
p {
background-color: inherit;
color: #006600;
font-size: 1.2em;
}
}
/* End Projector Styles */
/* Start Print Styles */
@media print {
body {
font-family: "Times New Roman", serif;
}
h1, h3 {
background-color: #fff;
color: #000;
}
p {
background-color: #fff;
color: #000;
font-size: 12pt;
}
}
/*End Print Styles */
@import
notation?
@import
rules must precede all other rules (except the @charset
rule, if present).