I realize I'm a little late to the party on this but I wanted to point out that what was said in a
post a couple pages back (and quoted below) is only half correct. You
can have multiple classes on an element - it is perfectly legal to do this. The first example in the quote is incorrect as Freesteyelz points out. The second example is okay but adds an unnecessary DIV and extra code. The solution is this:
HTML Code:
<div id="something" class="whatever1 whatever2">$post[message]</div>
Both classes will be used and this is completely acceptable CSS.
Quote:
Originally Posted by Freesteyelz
You cannot place 2 "class" attributes in a a single div tag. This is what you currently have:
Code:
<!-- message -->
<div id="post_message_$post[postid]" class="satellite_postbit" class="hidemsg">$post[message]</div>
<!-- / message -->
If anything replace it with:
Code:
<!-- message -->
<div id="post_message_$post[postid]" class="satellite_postbit"><div class="hidemsg">$post[message]</div></div>
<!-- / message -->
|