Re: urgent CSS question

From: Date: Fri, 22 May 2009 11:59:46 +0000
Subject: Re: urgent CSS question
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-292929@lists.php.net to get a copy of this message
On 22/5/09 12:49, PJ wrote:
Sorry, but no one suggested a mailing list for CSS and the W3 Schools Forum has problems.
Actually, I did: http://www.css-discuss.org/
Why do I get completely different formatting with two identical classes? I want to change part of the formatting on just one page on the site using the exact same class with some changes so I don't modify other pages. I copied div#frame to div#frame1 and changed the class on the page to id="frame1". But now the page no longer displays the formatting as with id="frame" - e.g.<p> produces 16px font-size instead of 12px.
This description is confusing. Can you please link to a minimal test case showing the problem you're talking about, so that we can view your code and ideally probe it with DOM inspectors like Firebug? http://webkit.org/quality/reduction.html may help you produce one. In general, I'd suggest creating page-specific style variations by sticking a class on the body (e.g. <body class="article"> ) and using that as a hook to modify the styling of the class whose formatting you want to be different. .thing {
    font-weight: bold;
} .article .thing {
    font-style: italic;
} for example. -- Benjamin Hawkers-Lewis

« previous php.general (#292929) next »