I am making a layout and the content box is acting weird. The text is going outside the box even though I have the padding set. The margin is zero. Hear is what it looks like... Link
Hear is some of my code.
#content {
height: 518px;
width: 505px;
background-image: url(images/content.jpg);
background-repeat: no-repeat;
line height: .8em;
padding-left: 38px;
padding-right: 38px;
padding-top: 46px;
padding-bottom: 46px;
margin-top: 20px;
margin-bottom: 20px;
}
<div id="content">
<h2>Home</h2>
<p id="home">
Blallasd;ldsjf; lasjdf;laskjdf; lasjkdfla;jksdf ;lask jdf;lajsdl;fjas dlfjkasdl;kfjas ;ldjfk;lsadjfla sdjfa
asdlkjfa;lsdkjf ;laksdjf;lajsdl kfjafds
</p>
</div>
Hear is some of my code.
#content {
height: 518px;
width: 505px;
background-image: url(images/content.jpg);
background-repeat: no-repeat;
line height: .8em;
padding-left: 38px;
padding-right: 38px;
padding-top: 46px;
padding-bottom: 46px;
margin-top: 20px;
margin-bottom: 20px;
}
<div id="content">
<h2>Home</h2>
<p id="home">
Blallasd;ldsjf; lasjdf;laskjdf; lasjkdfla;jksdf ;lask jdf;lajsdl;fjas dlfjkasdl;kfjas ;ldjfk;lsadjfla sdjfa
asdlkjfa;lsdkjf ;laksdjf;lajsdl kfjafds
</p>
</div>
Comment