Stevio wrote:

>Is this proper valid code & accepted in modern browsers or is there >anything 
>I should know to concern me with about using it?

In fact, it is valid code and supported by modern browsers.
(Not supported by Netscape 4, OmniWeb and IE 4 Mac and some issues with IE in 
general as Kornel already mentioned)

One thing you should avoid is to define duplicate attributes for both 
classes... e.g.

<p class="class1 class2"></p>

and using CSS like:

.class1{
  margin: 10px 5px;
}

.class2{
  margin: 2px;
  text-align: justify;
}

(As this might interfere the interpretation of 'margin' in different browsers 
where maybe only the second 'margin' is used...I'm not sure about that...)

For efficient usage you might use clearly named classes:

<p class="grey justified"></p>

.grey{
  color: #cccccc;
}

.justified{
  text-align: justify;
}

Which would offer you the option to have Paragraphs with different 
text-alignments, and also use grey-colored text in e.g. Headlines (<h2>...etc.)

I think it is a matter of your 'style' writing CSS if you use them or not.
A good application would be creating a 'stock' of classes, e.g. seperate colors 
and sizes in 'one-line-classes' and distribute them to your elements.
Just a suggestion.

Regards,

Tim

******************************************************
The discussion list for  http://webstandardsgroup.org/

 See http://webstandardsgroup.org/mail/guidelines.cfm
 for some hints on posting to the list & getting help
******************************************************

Reply via email to