OZONE Asylum
Forums
XML - XSL - XSLT - XHTML - CSS - DOM
class VS id what is the difference
This page's ID:
10895
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
"Style sheets are only allowed in the HEAD of the document, and visual elements are only allowed in the BODY." So I cannot do the following mid page? <body> <style type="text/css"> .topNavBox {background-color: #ffffff;} </style> </body> I have code like that running on some of our pages and both IE 5.1 up and Netscape 7 seem to be applying the styles. If I am not supposed to do things like that how can I apply style changes within the body? Maybe I am missing something here I figured it was better to have the style sheets broken up along the lines of the application code. A module will be called by the main page, the module will come with its own CSS code for styling and if needed the main page can apply a style that will over-ride the basic module style. Is it nessesary to manage all of my CSS code in one master file/location and do any CSS style changes within the actual tag of the module I want to change? So if I had a <p> in a module and I wanted that one paragrah styled differently because the element contained matched word from a search request I would do this: <p background-color:#cc9900;> or would I have to have the different style defined within the head and I just call that class when I find a match? <p class=searchFound> Thanks Again.
Loading...
Options:
Enable Slimies
Enable Linkwords
« Backwards
—
Onwards »