Reading Internet

Jan 06, 2006 02:59 # 41293

charlie *** posts about...

Internet Explorer CSS inheritence problem

#leftbar li > a
{
    color: #B34700;
    padding:10px 50px 10px 5px;
    margin-left:0px;   
}

This code is recognized by Firefox and Opera, but not IE. It also isn't recognized without the id element:

li > a
{
    color: #B34700;
    padding:10px 50px 10px 5px;
    margin-left:0px;   
}

So I'm guessing the problem is with the nest symbol. What is the correct name for that? May be that's why I can't Google any information about this problem. For my purposes I need both the id tag (What is the correct name for a "#idname" in CSS?) and the nesting thing.

The HTML looks like this:

<div id="leftbar">
<ul>
<li><a href="#"><img src="./image.jpg" alt="icon"/>Career</a></li>
</ul> 
</div>

This is completly ignored by IE, but works fine in Firefox and Opera. Any ideas?

Please contiune to vote AND post.

Jan 07, 2006 18:44 # 41324

ginsterbusch *** has all the information you need...

Re: Internet Explorer CSS inheritence problem

Either you work with Conditional Comments - add another css file giving IE what it wants:

<!--[if IE]>
<link rel="stylesheet" type="text/css" href="includes/ie_comp.css">
<![endif]-->

Or yo give this a try:

#leftbar li a {
    color: #B34700;
    padding:10px 50px 10px 5px;
    margin-left:0px;
}

This should work properly also in IE.

If you understand German, give SelfHTML a try. if not ... poor guy :-(

Other places where you might find what you're looking for:

- A List Apart
- W3C.Org: Cascading Style Sheets, Level 2
- http://www.websitetips.com/css/

cu, w0lf.

beards are cool. every villain has one!

This post was edited by ginsterbusch on Jan 07, 2006.

Jan 08, 2006 21:15 # 41338

charlie *** replies...

Re: Internet Explorer CSS inheritence problem

I'm a moron. Thanks again.

Please contiune to vote AND post.

Jan 09, 2006 08:28 # 41345

ginsterbusch *** replies...

Re: Internet Explorer CSS inheritence problem

I'm a moron. Thanks again.

No harm done. That's what I actually thought just a few minutes ago - but by now, it's working - hiding the 'I dont fucking going to optimize this site for IE'-layer at the all-new WHN :D

cu, w0lf.

beards are cool. every villain has one!


Small text Large text

Netalive Amp (Skin for Winamp)