calmchess Posted June 7, 2010 Share Posted June 7, 2010 I'm using the following CSS to layout a full screen page however when i add floating divs or any other content to .c-col then when I resize the page all the content collapses togeather i want to avoid using pixels as the width parameter because I don't know what resolution the client might be set at so percentages is my best be ......how can i tell the css not to collapse my content on resize?What should i do diffrently? body{ margin: 0; padding:0; background-color:black; } #c-block { width:100%; height:80%; } .c-col{ width:100%; height:800px; border:1px solid blue; } Link to comment https://forums.phpfreaks.com/topic/204092-width100-collapses-all-content/ Share on other sites More sharing options...
haku Posted June 7, 2010 Share Posted June 7, 2010 What exactly does 'collapse the content' mean? Link to comment https://forums.phpfreaks.com/topic/204092-width100-collapses-all-content/#findComment-1068998 Share on other sites More sharing options...
calmchess Posted June 7, 2010 Author Share Posted June 7, 2010 well I'm building the site for a cutomer when i resize the browser widow all the content bunches up.....resize it and drag it bigger and smaller and you will see what i mean. http://www.privatechatnow.com/yahoo_video_chat/home/home.php Link to comment https://forums.phpfreaks.com/topic/204092-width100-collapses-all-content/#findComment-1069029 Share on other sites More sharing options...
haku Posted June 8, 2010 Share Posted June 8, 2010 Set the top margin to a fixed height rather than a percentage. Top margin doesn't have anything to do with page width. Link to comment https://forums.phpfreaks.com/topic/204092-width100-collapses-all-content/#findComment-1069235 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.