Perfect S.
11-08-2006, 05:38 PM
Edit: Fixed... IE 7 needs a specific width value in my case (percents may mess it up)
1) Script Title: Sucker Tree Vertical Menu
2) Script URL (on DD): http://www.dynamicdrive.com/style/csslibrary/item/suckertree-menu-vertical/P0/
3) Describe problem:
Here's a picture of the problem:
http://img67.imageshack.us/img67/1383/test2jt3.jpg
http://img67.imageshack.us/img67/9280/test1ly4.jpg
The border Should end at where the yellow is. The menu works fine in ie 6 and firefox... but when I open it up in IE 7 the sub menus cannot be accessed properly. The <a> tag does not span the full width of the <li> so you cannot move your mouse onto the other links that pop up at the side. I read in a comment to fix it for ie 7 just add
width: 100%; I added that to the css.The problem is that even though the sub menus can be accessed they push out further than the 125px I've set them at and create white space. From what I can see it's the padding and borders that push it over.
/* menu links style */
.suckerdiv ul li a{
display: block;
color: black;
text-decoration: none;
background: #fff;
padding: 1px 5px;
border: 1px solid #ccc;border-bottom: 0;
}
The problem is that I don't want to put neither of those to zero or it will look bad on all browsers.
Making the width of the <a> 125 px (which is the width of the <ul>) does something similar.
I can't seem to find any way to fix this.
This is a school website and a majority of the traffic is by IE users... so making sure it works in more up to date IE browsers is important. Any ideas on how I can fix the problem for IE 7? Any help is GREATLY appreciated.
1) Script Title: Sucker Tree Vertical Menu
2) Script URL (on DD): http://www.dynamicdrive.com/style/csslibrary/item/suckertree-menu-vertical/P0/
3) Describe problem:
Here's a picture of the problem:
http://img67.imageshack.us/img67/1383/test2jt3.jpg
http://img67.imageshack.us/img67/9280/test1ly4.jpg
The border Should end at where the yellow is. The menu works fine in ie 6 and firefox... but when I open it up in IE 7 the sub menus cannot be accessed properly. The <a> tag does not span the full width of the <li> so you cannot move your mouse onto the other links that pop up at the side. I read in a comment to fix it for ie 7 just add
width: 100%; I added that to the css.The problem is that even though the sub menus can be accessed they push out further than the 125px I've set them at and create white space. From what I can see it's the padding and borders that push it over.
/* menu links style */
.suckerdiv ul li a{
display: block;
color: black;
text-decoration: none;
background: #fff;
padding: 1px 5px;
border: 1px solid #ccc;border-bottom: 0;
}
The problem is that I don't want to put neither of those to zero or it will look bad on all browsers.
Making the width of the <a> 125 px (which is the width of the <ul>) does something similar.
I can't seem to find any way to fix this.
This is a school website and a majority of the traffic is by IE users... so making sure it works in more up to date IE browsers is important. Any ideas on how I can fix the problem for IE 7? Any help is GREATLY appreciated.