Forum Moderators: not2easy

Message Too Old, No Replies

IE7 invisible "LI" tag

Shows up fine in IE8 and all other non-IE browsers

         

Mathiaslylo

10:33 am on Aug 13, 2010 (gmt 0)

10+ Year Member



Hi there guys.

I'm having an issue at this page.

[flamefusion.net...]

You see, in IE8 and all other non-IE browsers, the top menu has 3 items. 2 non-selected, and 1 selected.

These 3 items are: "Home", "Services" and "Software projects".

In the given URL, the item "Services" is selected. In IE8 and all other non-IE browsers, this makes the item black as intended, whereas on IE7, the item is not even there at all.

The CSS I use for the UL-tag on all browsers is:
margin-left:auto;margin-right:auto;padding-left:10%;padding-right:10%;display:block;list-style-type:none;


Now, the CSS I use for the selected-style LI-tag on IE8 and all other non-IE browsers is:
display:inline-block;


That works fine, but needs an alternative in IE7 or earlier, so I currently tried making a work-around, where I am right now giving IE7 and IE6 users the following CSS for the selected-style LI-tag:
float:left;margin-left:auto;margin-right:auto;display:none;vertical-align:top;overflow:hidden;


Whereas the link (A-tag) inside the selected LI-tag is cleared in IE8, and has the following style in IE7 and below:
float:left;


I tried explaining this as well as I can. If you think this is a too long message, you might be able to do better if you just check out the source-codes. Just keep in mind that the browser-specific CSS is sent server-side.

Fotiman

1:22 pm on Aug 13, 2010 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



A site like that is not very easy to debug. You're using nested tables for layout, plus a ton of inline CSS. There is no clear separation of content and presentation. You might consider cleaning it up to move all CSS to external style sheets.

As it turns out, the problem is that in IE7 there is some inline style causing the problem:

<li class="menuButtonSelected" style="float:left;margin-left:auto;margin-right:auto;display:none;vertical-align:top;overflow:hidden;">

So you'll need to take a look at the code that's generating this and find out why it's doing that.

Mathiaslylo

9:31 pm on Aug 13, 2010 (gmt 0)

10+ Year Member



Without the display:none, it appears fine if the selected menu item is the first item. If it's not, the item (and the items after it) will be invisible.

As an example, try going to [flamefusion.net....]

Then go to [flamefusion.net...] hosting/Default.aspx

See the difference?

Fotiman

3:04 pm on Aug 16, 2010 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Neither of those links works for me. And your original link no longer works either. Does that mean you got it working?