View Single Post
Old 12-31-2010, 11:44 PM   #9
Danger
Evangelist
Danger ought to be getting tired of karma fortunes by now.Danger ought to be getting tired of karma fortunes by now.Danger ought to be getting tired of karma fortunes by now.Danger ought to be getting tired of karma fortunes by now.Danger ought to be getting tired of karma fortunes by now.Danger ought to be getting tired of karma fortunes by now.Danger ought to be getting tired of karma fortunes by now.Danger ought to be getting tired of karma fortunes by now.Danger ought to be getting tired of karma fortunes by now.Danger ought to be getting tired of karma fortunes by now.Danger ought to be getting tired of karma fortunes by now.
 
Danger's Avatar
 
Posts: 490
Karma: 1665031
Join Date: Nov 2010
Location: Vancouver Island, Nanaimo
Device: K2 (retired), Kobo Touch (passed to the wife), KGlo, Galaxy TabPro
Not sure what you are exactly doing with that but you could probably simplify it to:
p.normalcentreblock {
font-family: "Times"; <-- unless you are embedding fonts, it's not really needed, or use serif
font-weight: normal;
font-style: normal;
font-size: 1em; <-- 1 em is normal font size, not really needed normally
line-height: 1.25em; <-- is this really needed?
text-indent: 0em; <-- only needed if you already indented the p tag
text-align: center;
margin: 0em; <-- not needed unless you set the margin bigger in the p tag
} <-- closing MUST have this, did you just forget to copy/paste or is it missing?

normally I do this:
p {
font-family: serif;
font-weight: normal;
font-style: normal;
font-size: 1em;
text-indent: 1em;
text-align: justify;
padding: 0;
margin: .2em 0 0 0; /*gives a margin of 20% of line height at the top of the paragraph and nothing for right/bottom/left margin */
}

.centertext {
text-indent: 0;
text-align: center;
padding: 0;
margin: 0;
}

then you would have for code:
<p class="centertext">Center this text...blah blah blah</p>

<p>this text is just a normal paragraph and not centered</p>
Danger is offline   Reply With Quote