Hey, I'm still new to CSS and I wanted to ask - how do I make a 100% width and 100% height, so that it covers all the screen? I wanted to use this one but it's not working, as I wish :/
Hello, I just tried this method and it works great...
However... when I put content inside of the maincage and reduce the height of my browser.... the content inside the maincage hangs out over the edge of the main cage, so there is empty white space below the maincage with the content hanging over it.
Is there anyway to get the maincage to always be 100% even on a browser resize?
/* weird ie5win bug: all line-height to font-size ratios must agree or box gets pushed around. UPDATE: this has turned out to be very rare. my current recommendation is IGNORE this warning. at the moment i'm leaving it in only in case the issue turns up again. possibly the original bug in march 2001 was caused by an unusual combination of factors, although this solved it at the time.*/
<div id="content"> <P>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Ut velit pede, posuere sed, consequat in, placerat vitae, est. Pellentesque eros lectus, porta et, consectetuer tempor, consequat non, metus. Cras aliquam, augue porttitor sodales lobortis, mauris nibh eleifend augue, quis pulvinar nunc dolor id mi. Nullam imperdiet. Quisque quam. Pellentesque tellus augue, viverra non, volutpat quis, molestie vitae, dolor. Nulla facilisi. Ut arcu ipsum, faucibus a, feugiat vitae, egestas id, est. Aenean volutpat venenatis dolor. Curabitur eget enim imperdiet magna congue bibendum. Vivamus tempus dui ac dolor. Sed eleifend adipiscing lacus. Nam mattis libero ac dui. Nullam sollicitudin nulla. Vestibulum massa turpis, vehicula nec, vehicula ut, laoreet et, sapien. Integer sem pede, commodo quis, convallis in, vulputate in, ipsum. </P> <div id="secondbox"> <ul> <li>this is a bullet list</li> <li>this is a second bullet item</li> </ul> </div> <P>Sed quis massa in turpis mollis tincidunt. Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Cras nec lorem. Nulla ipsum ipsum, faucibus auctor, placerat at, sodales ut, libero. Fusce aliquam pretium nisi. Ut porta ornare nibh. Vestibulum quis urna sed quam accumsan varius. Curabitur faucibus aliquet massa. Cras rutrum suscipit pede. Praesent commodo enim suscipit arcu. Morbi eu libero. </P> </div>
<img src="image.jpg" width="175" height="181" / alt="this is an image"> </div>