OZONE Asylum
Forums
CSS - DOM - XHTML - XML - XSL - XSLT
CSS...sharing IDs..??
This page's ID:
31106
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
In the current theme for my Wordpress blog the main template refers to a div called content. In the main style sheet, the content is defined as below. I have created a custom page template on the main template. This custom page template will refer to the same main style sheet. If I change the name of the div in the custom page template from [b]content[/b] to [b]content2[/b] and I only want to change the [b]background-color[/b] can i do this without having to duplicate all the other rules? I would remove the background-color from content, but the rest would be shared. [code]#content { text-align:left; font-size:12px; font-family:Geneva, Arial, Helvetica, sans-serif; padding:12px 80px; color:#EDE6EE; background-color:#303030; float: left; width: 628px; } #content a { color:#FFEBCD; text-decoration: none; outline: none; } #content a:hover { color:#EDE6EE; } [/code] Trying to do: [code] #content { background-color:#303030; } #content2 { background-color:#000000; } #content content2{ text-align:left; font-size:12px; font-family:Geneva, Arial, Helvetica, sans-serif; padding:12px 80px; color:#EDE6EE; float: left; width: 628px; } #content content2 a { color:#FFEBCD; text-decoration: none; outline: none; } #content content2 a:hover { color:#EDE6EE; } [/code] Nature & Travel Photography [url=http://www.sleepingwolves.com]Main Entrance[/url] [small](Edited by [url=http://www.ozoneasylum.com/user/6261]SleepingWolf[/url] on 07-06-2009 23:31)[/small]
Loading...
Options:
Enable Slimies
Enable Linkwords
« Backwards
—
Onwards »