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
Yeah, both of the #keyword (or #Keyword, as the case doesn't matter even though it's neater to stick with one) styles would work just as well if they weren't specifically described to sit inside the #wmasearch element within the #head element, or to only apply for <input>s, but there also is an advantage to doing it this way - it allows you to have more than one #keyword ID, seperate ones for different elements. Does that make sense? ...an example: [code]input#keyword { somestyles; } fieldset#keyword { someotherstyles; } div#keyword { yetmorestyles; }[/code] That way, you can assign the 'keyword' ID to an <input> as well as to a <fieldset> and to a <div>. Then with the first of your examples, the idea is very similar - you could, in one style sheet, have one '#head #wmasearch #keyword' element as well as a '#head #mp3search #keyword' element and apply whichever styles you need to both of them.
Loading...
Options:
Enable Slimies
Enable Linkwords
« Backwards
—
Onwards »