View Single Post
Old 07-13-2009, 05:41 AM   #3
zelda_pinwheel
zeldinha zippy zeldissima
zelda_pinwheel ought to be getting tired of karma fortunes by now.zelda_pinwheel ought to be getting tired of karma fortunes by now.zelda_pinwheel ought to be getting tired of karma fortunes by now.zelda_pinwheel ought to be getting tired of karma fortunes by now.zelda_pinwheel ought to be getting tired of karma fortunes by now.zelda_pinwheel ought to be getting tired of karma fortunes by now.zelda_pinwheel ought to be getting tired of karma fortunes by now.zelda_pinwheel ought to be getting tired of karma fortunes by now.zelda_pinwheel ought to be getting tired of karma fortunes by now.zelda_pinwheel ought to be getting tired of karma fortunes by now.zelda_pinwheel ought to be getting tired of karma fortunes by now.
 
zelda_pinwheel's Avatar
 
Posts: 27,827
Karma: 921169
Join Date: Dec 2007
Location: Paris, France
Device: eb1150 & is that a nook in her pocket, or she just happy to see you?
good advice from paul durrant ; the more style markup you can move to the css the better. that said, things like italics are usually okay to leave in the text, although some people define them as a style as well.

Quote:
Originally Posted by pdurrant View Post
Also, in the CSS you can specify the indent and paragraph spacing, and for the first paragraph in a chapter you can also specify no indent.

div.body p { text-indent: 1em; margin: 0em 0em 0em 0em }
div.body h4+p { text-indent: 0em; margin: 0em 0em 0em 0em }
another quick tip about css to make it shorter : when you are defining a property which has 4 possible measurements (like a margin), if they are all the same, you can just write the measurement one time, and it will be applied to all sides. if the measurement is 0, no need to specify units (em, px, etc.), you can just write : "margin: 0;"

if you are using the same measure for left and right and another meausure for top and bottom you can specify only 2 measures. the order is Top Right Bottom Left (spells TRouBLe) or Top (+ bottom) Right (+left), so for instance "margin : 0 1em;" will give a margin of 0 on the top and bottom, and 1em on the left and right.
zelda_pinwheel is offline   Reply With Quote