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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.