View Full Version : Custom b, u, i Attributes


bourdelson
02-26-2004, 02:20 AM
I went to a site a week or two ago that had used custom attributes for the bold, italic, and underline tags. Well, in a state of [dare I say?] stupidity, I didn't bookmark the site, and have now lost the URL forever, because I don't even remember what it's called. [Donne-moi intelligence, s'il te plait. {I don't even think that's the right way to say it. :buckt: } ^.^]

Anyway, I started to write CSS for a new layout, and thought about changing the attributes for each of the tags, so they aren't as dull as the normal bold, italic, underline. I wanted a couple of things. Can I change the underline for the <u> tag to something other than a solid line, and do I use font-weight:italic; and font-weight:underline; inside of the classes like I would use font-weight:bold;?

Any information on going about this is, of course, gratefully appreciated. :D

lefty
02-26-2004, 02:37 AM
I'm pretty sure you just add u,b, and i to your style sheet. Something like...

<style type="text/css">
<!--
u {
attributes, etc }
-->
</style>

As for the attributes themselves, italic and underline (I think underline, at least) is the font-style: attribute.

bourdelson
02-26-2004, 02:49 AM
Okie dokie, I shall remember this. Thanks a ton, Mrs. Carrabba, er, Lefty! :lol: [I don't think I'm spelling Mr. Chris' last name right. That's a tricky one, right there. Haha.]

lefty
02-26-2004, 03:51 AM
It actually is spelled right. You get a cookie :D

pb&j
02-26-2004, 04:33 AM
for the record...

font-style:italic;
text-decoration:underline;

lefty
02-26-2004, 04:44 AM
thanks :hehe:

bourdelson
02-26-2004, 04:51 PM
Hehe, thanks pb&j. :D

Ooh, glad I spelled it right, Lefty. And thanks for the cookie. :hehe:

pb&j
02-27-2004, 02:29 AM
no prob.
glad its working out for ya.