http://www.w3schools.com/CSS/css_syntax.asp

The class Selector

With the class selector you can define different styles for the same type
of HTML element.

Say that you would like to have two types of paragraphs in your document:
one right-aligned paragraph, and one center-aligned paragraph. Here is how
you can do it with styles:

p.right {text-align: right}
p.center {text-align: center}

You have to use the class attribute in your HTML document:

<p class="right">
This paragraph will be right-aligned.
</p>

<p class="center">
This paragraph will be center-aligned.
</p>


On Sun, May 4, 2008 1:12 pm, Chris Price wrote:
> Stuart Foulstone wrote:
>> CSS classes are for presentation.
>> Content is content.
>> Centering content is presentation.
>> Class names should not use keywords such as "center".
>> "centre" is not a keyword and can be used.
>> The class "centre" can then be used anywhere centering is desired.
>>
>> It is quite easy to remember what this class name does, but if you wish
>> to
>> use some more obscure name, feel free.
>>
> But the class attribute (centre) is not css. css is what you apply to
> that class.
>
> Markup is markup.
> Css is css.
> --
>
> Kind Regards
>
>
>   Chris Price
>   Choctaw
>
> [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
> www.choctaw.co.uk <http://www.choctaw.co.uk>
>
> Tel. 01524 825 245
> Mob. 0777 451 4488
>
> Beauty is in the Eye of the Beholder while
> Excellence is in the Hand of the Professional
>
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>
>  >> Sent on behalf of Choctaw Media Ltd <<
>
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>
> Choctaw Media Limited is a company registered in
> England and Wales with company number 04627649
>
> Registered Office: Lonsdale Partners, Priory Close,
> St Mary's Gate, Lancaster LA1 1XB . United Kingdom
>
>
>
> *******************************************************************
> List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
> Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
> Help: [EMAIL PROTECTED]
> *******************************************************************




*******************************************************************
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: [EMAIL PROTECTED]
*******************************************************************

Reply via email to