I have created a simple layout.
HTML
<div id="container">
<div id="logocontainer">
</div>
<div id="navigationcontainer">
</div>
<div id="textcontainer">
</div>
<div id="sidebarcontainer">
TEXTTEXTEXTTEXTTEXTEXTTEXTTEXTEXTTEXTTEXTEXTTEXTTEXTEXT.
</div>
</div>
CSS
* {
margin:0;
padding:0;
}
#container {
margin:0px auto;
width:600px;
height:1000px;
background:red;
}
#logocontainer {
float:left;
width:50%;
height:15%;
background:green;
}
#navigationcontainer {
float:right;
width:50%;
height:15%;
background:orange;
}
#textcontainer {
margin:10px;
float:left;
width:70%;
height:83.2%;
background:purple;
}
#sidebarcontainer {
margin:10px;
float:right;
width:23.33%;
background:yellow;
}
The content inside the div element is overflowing despite setting a margin for it.
Could someone please advise on what the issue might be?
Thank you,
KnowledgeableNavigator.