FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 



CSS anyone? set font property of an <LI> tag

 
Post new topic   Reply to topic    [TweakNews.net Forum] Forum Index -> PHP ,ASP ,MYSQL, HTML, DHTML
View previous topic :: View next topic  
Author Message
meobius
Tweakafile


Joined: 02 Sep 2003
Posts: 821
Location: Montreal

PostPosted: Tue Apr 11, 2006 9:23 pm    Post subject: CSS anyone? set font property of an <LI> tag Reply with quote

i've got the following bit of code

div#navbar li {
background-color:#FFFFFF;
color:#6384B0;
}

div#navbar a {
display:block;
padding:0 6px;
text-decoration:none;
color:#FFFFFF;
}
div#navbar a:hover {
background-color:#FFFFFF;
color:#6384B0;
}

The problem is all the text formating that i put in the LI style is completely ignored, e from what i know of css, the children inherit the value of the parent, so by setting the values for li, since a is decended from the li tag, it should inherit the properties.Even if i remove the div#navbar a {} style, the text styling is completely ignored (in regards to a link, it goes back to it's browser default)

a sample of html
<div id="navbar"><ul><li><a href"#"> some random link</a></li></ul>
it's actually is a fair bit more complex, but this defines the basics.

so... is it just me or does text formating(or link formating) do nothing?
_________________
If time is of the essence,
than why is it that we waste,
that which holds such great importance,
spent without a trace.
Back to top
View user's profile Send private message
Google
Sponsor





PostPosted: Tue Apr 11, 2006 9:23 pm    Post subject: Advertisement

Back to top
fussnfeathers
Lord of the Tweak


Joined: 14 Dec 2004
Posts: 2763

PostPosted: Wed Apr 12, 2006 4:06 pm    Post subject: Reply with quote

...............I like puppies............

What exactly are you attempting to do? There are limits to what most browsers will handle, as far as formatting.
_________________
Big enough to scare you
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    [TweakNews.net Forum] Forum Index -> PHP ,ASP ,MYSQL, HTML, DHTML All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB3 ©