OZONE Asylum
Forums
XML - XSL - XSLT - XHTML - CSS - DOM
CSS buggy?
This page's ID:
24461
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
[quote] But if I also want to resize the text and link attributes (size) in the same way, would I have to put all those into subclasses? Here is what I mean, but I dont know the proper syntax: [/quote] As you've said you have the idea but not the syntax. "Subclasses" as you said are actually the "Cascade" in Cascading Style Sheets (CSS). Since you've added a class to the body, you can style any element below it by specifying like so: [code] body.first h1 { color : red; background-color : transparent; font : bold 24px georgia, courier new, courier, monospace; } [/code] I knocked up a quick example of the concept [url=http://disk919.com/bb2/www/body_cascade/second.html]here, check it out[/url] (or [url=http://disk919.com/bb2/www/body_cascade/]root[/url] around here). Are you striving to make valid/compliant pages? If so there's a lot of work to be done in there, as Ensillitis said you've got a lot of things in there that look as if they were put in by a WYSIWYG editor (<p> </p> etc) that are not good stuff. Positioning with CSS would provide you with much cleaner markup and much more flexible measure of control. [url=http://disk919.com/][img]http://www.disk919.com/sig/jason.gif[/img][/url][url=http://serveit.org/][img]http://www.disk919.com/sig/serveit.org.gif[/img][/url]
Loading...
Options:
Enable Slimies
Enable Linkwords
« Backwards
—
Onwards »