This is a discussion on "CSS Horizontal Menu Bar - IE Problems!!" within the Web Page Design section. This forum, and the thread "CSS Horizontal Menu Bar - IE Problems!! are both part of the Design Your Website category.
|
|
|
|
|
![]() |
||
CSS Horizontal Menu Bar - IE Problems!!
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
|||
|
CSS Horizontal Menu Bar - IE Problems!!
Hi,
I have just finished building a template page for a website I am building which views fine in both safari and FF for mac. However, when tested in IE and FF for windows I get some horible results!! You can view the site here: http://www.eightyonedesign.co.uk/cli.../template.html And this is how it should look: http://www.eightyonedesign.co.uk/cli...mock-up-2.html The menu bar views fine in Safari and FF but the images which load behind the unordered list do not show up properly in IE? and I can't figure out for the life of me what is throwing it out? i am also having some problems with getting the menu to fill the hoizontal width of the navbar div? and I can't seem to figure out how to center the nav? I know it is a lot to look through but If anyone can save me it would be much appreciated - i think i have been looking at the code too long!!! Thanks Steve My css:
|
|
|
|
|||
|
Re: CSS Horizontal Menu Bar - IE Problems!!
Hi again,
I have managed to make it a bit better by changing the display: table to block. But I am still having problems with the nav bar not showing at all in IE6 and showing a gap to the float right end item on the menu bar? does anyone have any ideas? I am pulling my hair out as I can not seem to figure out why this is happening? |
|
|||
|
Re: CSS Horizontal Menu Bar - IE Problems!!
Not sure, I've only had a quick look. Is it a margin problem? Try adding margin: 0; to that last_menu class and see what happens.
I'll take a closer look this afternoon if that doesn't work; see if I can sus it. Pete. |
|
|||
|
Re: CSS Horizontal Menu Bar - IE Problems!!
Another thing. WHy is float: right; applied to the last_menu class? I'm sure that is causing your problems now. Unless the width of the ul perfectly matches the combined widths of the li's then it will be slightly out. Remove that float: right; and see waht happens. It should just attach itself to the end if you haven't got any margins set.
Hmm... Pete. |
|
|||
|
Re: CSS Horizontal Menu Bar - IE Problems!!
Looking at the sites source code instead of what was posted above,
I think you should change .menu li from display block to display: inline; Also I'm a little confused as to why on the #navigation the background image is repeating-y shouldn't it be repeat-x? |
|
|||
|
Re: CSS Horizontal Menu Bar - IE Problems!!
Hi Guys,
Thanks for your replies. pas007 - I have added a margin:0; to the last_menu and changed the float to left which seems to have worked in fixing the jumping last menu item in IE7. Hoever, I am still seeing no improvement in IE6? Any ideas? Lchad, I have tried display:inline; but that loses the height of the nav bar so the images that make up the backdrop do not work? Block seems to work fine in all browsers except for IE6. Also, the background image in the navigation nar is repeated y because it is a downward gradient so for the gradient to display it must be repeated y from left to right not from top to bottom - Is this wrong? Again, Thanks for your replies and any further advice on hpow to get this working in IE6 and below would be much appreciated. Thanks Steve |
|
|||
|
Re: CSS Horizontal Menu Bar - IE Problems!!
I always thought it was 'y for the sky'. So y is up and down and x is across. I think. Well my backgrounds repeat the way I want them to though I have never really thought about it. Not since I did graph work in maths class when I was 12.
Pete. |
|
|||
|
Re: CSS Horizontal Menu Bar - IE Problems!!
Yes x is left to right
Y is top to bottom. |
|
||||
|
Re: CSS Horizontal Menu Bar - IE Problems!!
Z is front to back.
__________________
I've got <style> and .class
|
|
|||
|
Re: CSS Horizontal Menu Bar - IE Problems!!
Thanks Guys,
I must have got confused - I will change the repeat y to x. Any ideas on getting this to work in IE6 and below - I am really having problems here and am considering switching the nav to javascript rollovers - but I really want this css bar to work!! Help me please!!! Thanks Steve |
|
|||
|
Re: CSS Horizontal Menu Bar - IE Problems!!
I believe part of your problem is with the repeat-y
Change the navigation css to this.
|
|
|||
|
Re: CSS Horizontal Menu Bar - IE Problems!!
Hi Lchad,
Thanks again for your reply! I have changed the repat to X but I am still having problems in IE6 and below - any futher ideas? Thanks Steve |
|
|||
|
Re: CSS Horizontal Menu Bar - IE Problems!!
Take a look at this... it's a step by step tutorial which works from IE5 on up.
http://www.456bereastreet.com/archiv...avigation_bar/ I tried to sort through that tutorial and compare it to yours but there were so many differences that I thought it might be worth reconstructing from scratch. Here is another great tutorial http://www.joe2torials.com/view_tutorial.php?view=38 I still think you need display: inline; added ... Try putting that in .menu |
|
|||
|
Re: CSS Horizontal Menu Bar - IE Problems!!
Hi again Lchad,
Looking at these tutorials, these do not use background images to geneterate the rollover which makes it very different to mine. I have successfully built this sort of nav bar before but the problems I am having with my nav bar is the rounded edges on the two ends which means using a different background image for the first and last menu items - that is what seems to be throw the design out? Any ideas on a tutorial that uses unordered lists but with end classes that generate rounded edges? Thanks again Steve |
|
|||
|
Re: CSS Horizontal Menu Bar - IE Problems!!
I will try and build your menu the way I usually do them. I'll see what happens.
Pete. |
|
|||
|
Re: CSS Horizontal Menu Bar - IE Problems!!
I've built this and it works in all the browsers I have on this computer. That's flock (same as firefox) and ie6. So I assume its fine.
It appears to be doing some flashy thing on hover and I don't know why but this has solved the positioning problem. I'll have a look at it. It seems to be doing this on a lot of sites so I might just have a crappy version of ie on here. Here is a link. Heres the html, the same as yours I think:
Pete. |
|
|||
|
Re: CSS Horizontal Menu Bar - IE Problems!!
Works in FF2, IE 7 and IE 6
|
|
|||
|
Re: CSS Horizontal Menu Bar - IE Problems!!
I don't know what was wrong in swillicott's original but there was a lot of css there. There must have been some conflicting properties or something.
Pete. |
|
|||
|
Re: CSS Horizontal Menu Bar - IE Problems!!
That can happen easily. As you try to make it work for all browsers sometimes code just builds up and builds up!
|
|
|||
|
Re: CSS Horizontal Menu Bar - IE Problems!!
Sorry for the delay in replying - I have been away for a few days.
pa007 - Thanks so much - I have replaced my code with yours and all works fine in all browsers I have tested. I still can not see what was throwing it out before but this work really well. I am experiencing one a few small problems still in IE 6 and below: For some reason, the nav bar sits slightly to the left of the main content when viewed in IE 6 - but again, i can not see what is causing this - any ideas? Also, When viewed in Safari or FF for mac, the nav bar sits pretty much centrally alligned - but when viewed in IE6 (and I think 7) the menu sits slight more to the left of the white backdrop? Again, I can not seem to get this to display as it does in Safari. I have played around with the padding between the li but this then throws it out in Safari and FF for mac? You solve one problem and then run in to another!! Any (more) help would be greatly appreciated! Thanks again for taking the time to look through this, Steve My New css:
|
![]() |
| Tags |
| bar, css, horizontal, image, menu, rollover |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Positioning problems with horizontal drop down menu | dreamabstract | |||