Ok. Now I need some help with "locking" in text.
I write stuff in the content div, but it wont stay inside at all.... could someone help me with that please`? I think the image speaks for itself:
Thanks for your cooperation. =)
It is currently Fri Mar 29, 2024 6:23 am
Jest@ wrote:overflow:scroll on the parent element.
Highlight to read:It was earth all along
body
{
}
div.container
{
width:800px;
background-color:Black;
margin:0px;
border:1px solid black;
}
div.header
{
width:800px;
margin:0px;
border:0px;
height:120px;
background-color:#cccccc;
}
div.nav
{
width:800px;
height:25px;
background-color:#c0c0c0;
border:1px solid black;
border-bottom-width:0px;
border-left-width:0px;
border-right-width:0px;
}
div.content
{
width:760px;
height:200px;
background-color:Gray;
border:1px solid black;
border-left-width:0px;
border-right-width:0px;
padding:20px;
padding-top:15px;
}
div.footer
{
width:800px;
height:30px;
color:white;
background-color:#c0c0c0;
clear:left;
}
border:1px solid black;
border-bottom-width:0px;
border-left-width:0px;
border-right-width:0px;
border: solid #000;
border-width: 1px 0 0;
padding:20px;
padding-top:15px;
padding: 15px 20px 20px;
Return to Web Design & Development
Users browsing this forum: No registered users