View Full Version : placing ur class's in ur code
Bluemonkey
08-29-2003, 11:38 AM
is there any major differnce between doing this?
<td clas="text">some text</td>
and
<td><font class="text">Some text</font></td>
are they both cobatiabl with all browsers?
cheers for the help
Spudhead
08-29-2003, 12:20 PM
AFAIK the <font> tag is depreciated? Might be wrong. So I'd use the <td> - or better still, <span>.
liorean
08-29-2003, 01:25 PM
Well, as long as you only use text styling properties, there's no difference between putting it on the container element instead of creating a new, style-specific element. Beware of underlines, however. They can be tricky since they are preserved from the outer element even if the inner element specifically turns them off.
oracleguy
08-29-2003, 06:50 PM
Originally posted by Spudhead
AFAIK the <font> tag is depreciated? Might be wrong.
Yeah it is.
cg9com
08-29-2003, 07:47 PM
Originally posted by liorean
Beware of underlines, however. They can be tricky since they are preserved from the outer element even if the inner element specifically turns them off.
Also another example would be wanting your text to have a border, but placing the class in an outer element will border that instead of your text.
Basically I say use it as you need it.
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.