iPixel Posted November 17, 2011 Share Posted November 17, 2011 So i'll admit upfront, CSS div positioning has always been my weakness and a huge thorn in my side. I'm messing around with a layout, a very simple one. However if you go here ( http://www.pturula.com ) you'll see at first visually all things are placed as they need to be. Here's my problem, it's a 1024px wrapper that centers the content and when you reduce your browser width size as you do so you will see that the "menuitems" start to wrap. How can i prevent them from wrapping and remain in their spot even if the browser is 1px wide LOL. Thanks Guys! Quote Link to comment https://forums.phpfreaks.com/topic/251336-css-positioning-grrr/ Share on other sites More sharing options...
floridaflatlander Posted November 17, 2011 Share Posted November 17, 2011 I hate this stuff too. It's not doing it in ie7 just 8 & above and firefox. Of course that's what 90% of the people are using. Quote Link to comment https://forums.phpfreaks.com/topic/251336-css-positioning-grrr/#findComment-1289092 Share on other sites More sharing options...
floridaflatlander Posted November 17, 2011 Share Posted November 17, 2011 Is it because the links are positioned absolute and the menuitems positioned absolute? Can you remove that formating for a test? Quote Link to comment https://forums.phpfreaks.com/topic/251336-css-positioning-grrr/#findComment-1289095 Share on other sites More sharing options...
floridaflatlander Posted November 17, 2011 Share Posted November 17, 2011 I'm pretty sure it's the absolute positioning. what are yoo trying to do. I think your container has to be relative and the links absolute. But do you even need that? Quote Link to comment https://forums.phpfreaks.com/topic/251336-css-positioning-grrr/#findComment-1289110 Share on other sites More sharing options...
iPixel Posted November 18, 2011 Author Share Posted November 18, 2011 It's definately not that, I've tried all variations of position and nothing helped. I feel it may be a combination of my div structure and how that are all positioned. When make the menu container relative I cannot position it to the right at all. Again I suk at CSS positioning :-( Quote Link to comment https://forums.phpfreaks.com/topic/251336-css-positioning-grrr/#findComment-1289150 Share on other sites More sharing options...
floridaflatlander Posted November 18, 2011 Share Posted November 18, 2011 When I copied your html and took out the absolutes it worked. Quote Link to comment https://forums.phpfreaks.com/topic/251336-css-positioning-grrr/#findComment-1289159 Share on other sites More sharing options...
iPixel Posted November 18, 2011 Author Share Posted November 18, 2011 Ok i fixed it, removed absolute from menuitems conainer and added absolute to header & content, which worked out fine. THanks for the help. Quote Link to comment https://forums.phpfreaks.com/topic/251336-css-positioning-grrr/#findComment-1289182 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.