View Single Post
Old 11-22-2014, 07:19 AM   #4
Jellby
frumious Bandersnatch
Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.
 
Jellby's Avatar
 
Posts: 7,560
Karma: 20150435
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
The difference between <p> and <div> depends on the rest of the stylesheet and the default styles applied by the reader. Usually, <p> will have some default margins and/or indent, while <div> is a "virgin" element. By default, I would prefer <div>, and, to be specific use "div.image" in the CSS rather than just ".image".

"text-align" simply defines the alignment of the content, whatever it is.

"auto" margins can be used for different purposes (centering a table, usually), but they are not guaranteed to work (the spec allows ignoring them, and many readers do).
Jellby is offline   Reply With Quote