Jump to content

width:100% collapses all content.


calmchess

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.