View Single Post
Old 12-20-2015, 06:26 AM   #10
pdurrant
The Grand Mouse 高貴的老鼠
pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.
 
pdurrant's Avatar
 
Posts: 74,002
Karma: 315160596
Join Date: Jul 2007
Location: Norfolk, England
Device: Kindle Oasis
Quote:
Originally Posted by ProDigit View Post
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.
pdurrant is offline   Reply With Quote