biggieuk Posted June 10, 2011 Share Posted June 10, 2011 Hi all, I have a navigation that looks like this: http://jsfiddle.net/eyQnA/ I am trying to get this to fill the widthof the #frame. I could set a width for each menu item but it is going to be dynamic so I'm not sure of the number of items. Is there a way to do this CSS only? Also the menu seems to be broken in IE6, each list item takes up the whole width of the #frame instead of floating left. Thanks for help with this. Quote Link to comment Share on other sites More sharing options...
fugix Posted June 10, 2011 Share Posted June 10, 2011 try setting the overall width of the div to 100% Quote Link to comment Share on other sites More sharing options...
cssfreakie Posted June 10, 2011 Share Posted June 10, 2011 As far as i can see it already spans the the whole width. As far as IE6 you might want to try and add display:inline to each element that has a property of float. Quote Link to comment Share on other sites More sharing options...
biggieuk Posted June 10, 2011 Author Share Posted June 10, 2011 Thanks for your replies. Doesn't seem to have worked however. cssfreakie - I need the menu items to fill the whole width of the #frame div, Is that what you are seeing? Thanks Quote Link to comment Share on other sites More sharing options...
cssfreakie Posted June 10, 2011 Share Posted June 10, 2011 yes, if i inspect it with firebug, the size of both seems to be the same. Maybe try this out outside of such code sharing environment. It could very well be that some other things are disturbing the outcome. i have a free host were i can test stuff, maybe worth to try out yourself. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.