bPHP Posted June 26, 2010 Share Posted June 26, 2010 Hi! How can I do to avoid the movement and resizing of all divs when the user resizes his browser? I want that everything stays in the same place... Thanks!!! Quote Link to comment Share on other sites More sharing options...
haku Posted June 27, 2010 Share Posted June 27, 2010 Make your widths absolute - i.e. X pixels, rather than ems or percentages. Quote Link to comment Share on other sites More sharing options...
bPHP Posted June 30, 2010 Author Share Posted June 30, 2010 Thanks! That worked! However, I have a new problem... I was using jQuery to make a form appear slowly, and since my positions were not absolute when the form appeared it pushed all the other divs down (making a nice effect)... Now it does not push them since they have absolute positions... Any ideas on how can I do this effect now? Thanks! Quote Link to comment Share on other sites More sharing options...
haku Posted June 30, 2010 Share Posted June 30, 2010 Sorry, I didn't mean position your elements absolute, I meant make your widths an fixed width. If you set your widths in a relative width like percentages or ems, things will move around when the browser width changes. Using fixed widths helps with this. You shouldn't use absolute positioning though. It's not cross browser friendly, and causes problems like the one you are having now. 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.