Quote:
Originally Posted by ProDigit
I still need to learn how the .css file connects to xml and html, probably my next project. Html without this was so much easier! 
|
CSS connects to HTML via tags and classes and ids, and lots of other ways. See
CSS Selectors.
e.g.
Code:
body {
font-family: "Times New Roman:, Times, serif;
}
will apply Times New Roman, or Times, or a serif font to the body of the HTML.
Code:
p {
text-indent: 1em;
}
will indent the first line of all paragraphs by 1em.
Code:
p.first {
text-indent: 0em;
}
will set the indent of any paragraph of class first to zero. So that
Code:
<p class="first">In a hole in the ground there lived a hobbit.</p>
won't have an indent.