Container/Wrapper Div does not contain all content?

Posted by Imran on Stack Overflow See other posts from Stack Overflow or by Imran
Published on 2010-05-17T13:39:22Z Indexed on 2010/05/17 16:20 UTC
Read the original article Hit count: 482

Container/Wrapper Div does not contain all content (ie all the child Div's).I've tried overflow: hidden but still doesn't work. Can someone please tell me why this is happening and what are the possible solutions.

Thank you in advance ;-)

for some reason the whole code does not display??

<html>
<head>  
<style type="text/css">

#wrapper {

margin:0 auto;
width: 600px;
background: yellow; 
}

</style>
</head>
<body>
    <div id="wrapper"> 
<div="header">
<h1>my beautiful site</h1>
</div>


<div id="navigation">
    <ul>
            <li><a href="#">Home </li>
                <li><a href="#">About</li>
                <li><a href="#">Services</li>
                <li><a href="#">Contact us </li>
        </ul>


</div>




<div id ="content">

    <h2> subheading<h2>
        <p>  long paragraph </p>
        </div>

    <div id ="footer">
        copyright 123
        </div>



</div> 
</body>
</html> 

© Stack Overflow or respective owner

Related posts about css-layout

Related posts about css