06-24-2006, 06:22 AM
I'm updating an old site I hand-coded in basic HTML with CSS. I have an unordered list preceded with font tags for Verdana. However, I can find no information on adding a font attribute to a list in CSS. I tried putting the <p> tag before and after the <ul> tag and nothing works. I've been Googling for an hour and I've found every conceivable attribute I can add to a <ul> tag except the font. Either this is so simple that no one bothers writing about it, which means I'm an idiot, or it's too complicated to be addressed.
I suspect it's the former.
06-24-2006, 06:34 AM
Its actually pretty simple.
font-family:Verdana, Tahoma, sans-serif;
I used multiple fonts because some users may not have a font listed, which case it defaults to some sans-serif font.
if you don't mind inline styles, try:
<ul style="font-family: Verdana;">
If you only wanted to style one of your list items, then:
<li style="font-family: Verdana;">testing</li>
If you want all your lists to look the same, then place this somewhere in your <head> section:
and just use your tags normally.
hee hee _Aerospace was off the launch pad before me :p
06-24-2006, 06:47 AM
I was right; I'm an idiot :rolleyes: I knew it had to be something simple.
Thank you so much.