- From: Beheler Kim <beheler_kim@bah.com>
- Date: Thu, 7 Apr 2005 16:29:41 -0400
- To: <w3c-wai-ig@w3.org>
- Message-ID: <CD6921F5E4AC7842B574B14C4E48A8CB4E3A78@MCLNEXVS03.resource.ds.bah.com>
Sorry this may be my lack of knowledge on style sheets, but what if there is one word in the paragraph that needs to have a different style? But by default the <p> tag creates a break after the closing </p>. So if I created two separate styles in my style sheet for the <p> tag, how would I remove the break? P { Color: red; } P.bold { Font-weight: bold; } <p>here is my</p><p class="bold">paragraph.</p> For example, the previous code would be displayed as: Here is my paragraph. I understand that I could use a <span> tag around the word 'paragraph'. But how would I use the style sheet if it is an abuse of style sheets to create my own class (ex. .red)? -----Original Message----- From: w3c-wai-ig-request@w3.org [mailto:w3c-wai-ig-request@w3.org] On Behalf Of David Woolley Sent: Wednesday, April 06, 2005 5:55 PM To: w3c-wai-ig@w3.org Subject: Re: Inline Style Sheet Question > If there is a style in the author's style sheet that just makes the font > red, for example: A typical abuse of style sheets. > .red { > Color: red; > } > > Then I must have that same class defined in my user-defined style sheet? No. You must, at the same importance level, have at least as many selectors for that attribute, e.g. p { color: red } would override, but {color: red} would not. !important would cause an override because the author hasn't used it.
Received on Thursday, 7 April 2005 20:29:55 UTC