Hi, I've created an expandable button (will expand dynamically based on content), only problem in that in IE6 background-position doest work. I know I could just re-write the css+html and create this button in a diff way but really rather use this way.
HTML
<ul class=\"white-btn-menu\"> <li><a href=\"#\">Business</a></li> <li><a href=\"#\">Divorce</a></li> <li><a href=\"#\">Wills & Estates</a></li> <li><a href=\"#\">Trademark & Copyright</a></li> </ul>
CSS
ul.white-btn-menu { list-style-type:none; } ul.white-btn-menu li {
if your image is a 32bit PNG that is transparent, and you are using a transparency fix, most fixes wont fix the positioning of the background png.
Make sure your png fix, if you have one, has that feature. Unfortunately the one TheDoc has added, although good, does not have this feature for positioning fixing built in...
Do you have a live example - it would be easier to see... :)
Found this code fix http://www.dillerdesign.com/experiment/DD_belatedPNG/ which improved the situation but still not perfect. [attachment=1]improved-ie6.gif[/attachment]
ass u can see it strches the 2 images insted of having them together + the two "li"'s are sopposed to be floating side by side like so: [attachment=0]good-img.gif[/attachment]
still can't make it live. thanks very much for you help. any more suggestions?
The problem is that When you float a <li> in IE6, sometimes* it doesn't shrink the width of the <li> to be as thin as possible (allowing the other buttons to align next to it); it remains at 100%. When this happens the only real fix I have been able to find is to manually program the width of each button =/
Do me a favor, and try "float: right" and let me know how that goes. Also try adding "display:block" to the "li" (repetitive I know).
*I have run into the problem before (with teakwarehouse.com's menu) and had to manually edit the widths of each menu item. But I just did my personal website's menu that way and didn't seem to have any problems... I can't see any major difference in the codes, besides the two I mentioned above and the position absolute for the UL. Here's my code:
I've created an expandable button (will expand dynamically based on content), only
problem in that in IE6 background-position doest work.
I know I could just re-write the css+html and create this button in a diff way but really rather use this way.
HTML
CSS
Any suggestions?
THANKS
[attachment=1]good-btn.gif[/attachment]
[attachment=0]ie6-btn.gif[/attachment]
<!--[if lt IE 7]>
<script src="http://ie7-js.googlecode.com/svn/version/2.0(beta3)/IE7.js" type="text/javascript"></script>
<![endif]-->
Make sure your png fix, if you have one, has that feature. Unfortunately the one TheDoc has added, although good, does not have this feature for positioning fixing built in...
Do you have a live example - it would be easier to see... :)
Found this code fix http://www.dillerdesign.com/experiment/DD_belatedPNG/ which improved the situation
but still not perfect.
[attachment=1]improved-ie6.gif[/attachment]
ass u can see it strches the 2 images insted of having them together + the two "li"'s are sopposed to be floating side by side
like so:
[attachment=0]good-img.gif[/attachment]
still can't make it live.
thanks very much for you help.
any more suggestions?
still looking for solution before I change my html+ css
Do me a favor, and try "float: right" and let me know how that goes.
Also try adding "display:block" to the "li" (repetitive I know).
*I have run into the problem before (with teakwarehouse.com's menu) and had to manually edit the widths of each menu item. But I just did my personal website's menu that way and didn't seem to have any problems... I can't see any major difference in the codes, besides the two I mentioned above and the position absolute for the UL. Here's my code:
I hope that helps...
Ashton Sanders
Sadly what I did was add conditional css for IE6, added a width to every li
Thanks to all :)