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!!! Link to comment https://forums.phpfreaks.com/topic/205953-not-affected-by-resizes/ 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. Link to comment https://forums.phpfreaks.com/topic/205953-not-affected-by-resizes/#findComment-1077809 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! Link to comment https://forums.phpfreaks.com/topic/205953-not-affected-by-resizes/#findComment-1079183 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. Link to comment https://forums.phpfreaks.com/topic/205953-not-affected-by-resizes/#findComment-1079196 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.