Christian Montoya wrote:
> On 8/3/06, Eoin Maguire <[EMAIL PROTECTED]> wrote:
>
>   
>> It seems strange to create a whole new style just for adding bold text but
>> then I can't think of any other way of doing it. I've ended up creating
>> styles named things like 'makeBold' with nothing more than "font-weight:
>> bold" inside them.
>>
>> Is this the proper way of adding simple levels of styling?
>>     
>
> Nope. Use multiple classes:
>
> <p class="special">...</p>
> <p class="special bold">...</p>
>
> then in your CSS:
>
> .special { font:...; color:...; }
>
> .bold { font-weight:bold; }
>
>
>   

Or better yet use a <strong> tag if it adds semantic value to the document.

http://www.stuffandnonsense.co.uk/archives/semantics_and_design.html
______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
IE7b2 testing hub -- http://css-discuss.incutio.com/?page=IE7
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to