OZONE Asylum
Forums
XML - XSL - XSLT - XHTML - CSS - DOM
Inline style vs. style sheet
This page's ID:
27240
Search
QuickChanges
Forums
FAQ
Archives
Register
Edit Post
Who can edit a post?
The poster and administrators may edit a post. The poster can only edit it for a short while after the initial post.
Your User Name:
Your Password:
Login Options:
Remember Me On This Computer
Your Text:
Insert Slimies »
Insert UBB Code »
Close
Last Tag
|
All Tags
UBB Help
not quite as the bird flu... but avoiding inline styles, heck yes! Why? Well to me it's just as bad as font tags... they are right there smack dab in the middle of the html making it pure h*ll to redesign using edits in the stylesheet only! Plus, linked in stylesheets are cached, inline just bloats the code. What I recommend is to use a mix of styledefinitions for selected html-elements, some basic classes for different positioning, some basic classes for color and some for fontstyling, something for decorations etc or something like that which suits your way of thinking. Name them smart, not "14pxRed", a better choice would be "mediumLargeColored" remember that you should be able to identify the presentation in the HTML even if the colors have changed since last redesign. Then you can use several classes on the elements, one for positioning, one for color and one for font: <p class="floatLeft accentBgColor mediumSize thinBorders">My para-text</p> that way you can quite easily keep your stylesheet in a reasonable size and retain the flexibility. /Dan [url=http://www.dmsproject.com/] [img]http://www.dmsproject.com/gif/newSiggie.gif[/img] [/url] [url=http://faq.ozoneasylum.com/FaqWiki/shownode.php?sortby=rating&id=260]{cell 260}[/url] [url=http://dmsproject.blogspot.com/]{Blog}[/url] -{"Theories without facts are just religions...?}- [small](Edited by [url=http://www.ozoneasylum.com/user/582]DmS[/url] on 01-02-2006 18:50)[/small]
Loading...
Options:
Enable Slimies
Enable Linkwords
« Backwards
—
Onwards »