PDA

View Full Version : html => element with 2 css classes


ragtek
01-02-2008, 03:12 PM
Hi
is it allowed that a element have 2 classes?
ATM I'm having:
<div id="dialog1">
<div class="hd thead">Private Nachricht erstellen</div>
<div class="bd alt1">

it seems that i'ts working but i thought its better to ask.

I need both because the 1. class is for yui and the second because for the style

Opserty
01-02-2008, 10:38 PM
Yes you can. Just separate them by a space as you have done.

<span class="classone classtwo">...</span>

ragtek
01-03-2008, 08:50 AM
thx :)