Re: Use of style attribute?

Lee Passey <[email protected]>
Newsgroups gmane.culture.literature.e-books.gutenberg.volunteers
Message-ID <[email protected]>
On 11/7/2012 1:49 PM, Robert Gibbins wrote:

> Lee's scheme seems to offer another way round this problem, namely that one
> would merely at the appropriate point in the text mark up with
> <div style="margin-left: n em">text content</div> thus not needing any css
> classes at all.

BTW, your margin example is not a good one. If you're changing margins 
you'd better have a good reason for doing so, other than simply because 
you think it looks better that way, in which case the right thing to do 
is to classify the <div> by the reason rather than trying to style it. E.g.:

div.newspaper { margin-left: 2em; }
div.toc       { margin-left: 0em; }
div.signinbarbershopwindow { margin-left: 3em }

If you don't have a semantic reason for changing margins, don't do it. 
Only use inline styles on elements when there is really no alternative, 
and no one would want it done otherwise. If there's /any/ chance that a 
reader would disagree with your choice of style, put it in an external 
style sheet.

_______________________________________________
gutvol-d mailing list
gutvol-d-4LCm/o+qPMZ96Xl/[email protected]
http://lists.pglaf.org/mailman/listinfo/gutvol-d
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.