jege Posted August 2, 2011 Share Posted August 2, 2011 Hi! I was trying to create some simple website for myself and got it to work. So i just tested few things and noticed when i make smaller my browser view one all the things just overlap others. How can i make so that the elements stay on their place whatever its resized or not. Thanks Quote Link to comment https://forums.phpfreaks.com/topic/243579-css-problem-with-positioning/ Share on other sites More sharing options...
cssfreakie Posted August 2, 2011 Share Posted August 2, 2011 if they overlap, you're having issues with the z-index (google that) Easiest thing is to wrap everything in 1 container (a <div>) and give that a fixed width. Another thing could be to work with percentages, but that is far more complicated. I recommend you read abit about the z-index and test out the wrapper. Quote Link to comment https://forums.phpfreaks.com/topic/243579-css-problem-with-positioning/#findComment-1250680 Share on other sites More sharing options...
jege Posted August 2, 2011 Author Share Posted August 2, 2011 Thanks. Ill see if wc3shcools got anything related to z-index. And ill just create 1 div around everything and try it. Thanks anyways Quote Link to comment https://forums.phpfreaks.com/topic/243579-css-problem-with-positioning/#findComment-1250715 Share on other sites More sharing options...
jege Posted August 2, 2011 Author Share Posted August 2, 2011 Thanks. I added the div around the site and worked fine after i just moved the elements back. Quote Link to comment https://forums.phpfreaks.com/topic/243579-css-problem-with-positioning/#findComment-1250774 Share on other sites More sharing options...
cssfreakie Posted August 2, 2011 Share Posted August 2, 2011 skip w3schools, get a book or just check the manual: http://www.w3.org/TR/CSS2/visuren.html Quote Link to comment https://forums.phpfreaks.com/topic/243579-css-problem-with-positioning/#findComment-1250789 Share on other sites More sharing options...
jege Posted August 2, 2011 Author Share Posted August 2, 2011 ok. ill try it Quote Link to comment https://forums.phpfreaks.com/topic/243579-css-problem-with-positioning/#findComment-1250816 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.