Sarah Atkinson wrote:
Right now I am converting all my inline styles to an external stylesheet.
Many of these styles are a one use style and not re-used elsewere(except
maybe the <div style=²clear:left, right or both;²></div>

What true benefit do I get by adding these to as css page vs. leaving them
inline?

Sarah,

I feel about inline styles the same way Joan Crawford did about wire coat hangers: "No...Inline Styles..Ever!!" The points made earlier about file size and maintenance are right on. If you find yourself with seemingly no other way to go for an exceptional case, you're better off creating a custom class for that particular element than using an inline style. That way, you can comment your CSS to remind yourself and give others a hint as to why you had to do what you did - all while keeping your content and presentation separate.

If you find yourself having to add a lot of classes, that would be a good time to reexamine your HTML structure.

- JCD

______________________________________________________________________
css-discuss [cs...@lists.css-discuss.org]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to