Hello everyone, first post
I have recently tried my hand at designing a website. I downloaded a template off the internet, and have started to change the graphics etc on it to make it my own (I liked the layout). However:
When I use a minimal amount of text, the page works fine. When I start to add more text however, the page 'breaks apart'. I was wondering whether anyone could help me resolve this issue, as it looks very ugly.
Page Normal: http://img151.imageshack.us/img151/7416/normalqh2.png
Page 'Cracked': http://img149.imageshack.us/img149/9072/crackeduo1.png (I have drawn red squares around the problem areas.)
Where the problem areas are, I would like to have filled with the same color as the rest of the interface (a dark brown color, which is #b38736).
Page source code: (index.html)
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Home</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-5" />
<link rel="stylesheet" type="text/css" href="style.css" />
</head>
<body>
<div id="content">
<div id="left">
<button class="button but1"> </button>
<img src="images/photo1.jpg" alt="" width="246" height="176" class="border" />
<button class="button but2"> </button>
<img src="images/photo2.jpg" alt="" width="246" height="175" />
</div>
<div id="right">
<img src="images/title.gif" alt="" width="325" height="49" class="name" align=right/>
<ul class="menu">
<li><a href="#"><img src="images/but1.jpg" alt="" width="83" height="46" /></a></li>
<li><a href="#"><img src="images/but2.jpg" alt="" width="84" height="46" /></a></li>
<li><a href="#"><img src="images/but3.jpg" alt="" width="84" height="46" /></a></li>
<li><a href="#"><img src="images/but4.jpg" alt="" width="84" height="46" /></a></li>
</ul>
<div id="inside">
<img src="images/title1.gif" alt="" width="211" height="24" />
<div class="item1">
<p><strong>Minim veniam quis nostrud</strong> exerci tation tincidunt laoreet. Dolore magna aliquam suscipit lobortis nisl, ipsum adipiscing. elit, sed diam. </p>
<img src="images/pic1.jpg" alt="" width="116" height="75" />
<a href="#">learn more about us</a>
</div>
<div class="hr"><img src="images/spacer.gif" alt="" width="280" height="1" /></div>
<img src="images/title2.gif" alt="" width="113" height="20" />
<div class="item2">
<p><strong>Quis nostrud exerci tation tincidunt laoreet.</strong> Dolore magna aliquam suscipit lobortis nisl, ipsum adipiscing elit, sed diam.</p>
<ul>
<li><a href="#">Nostrud exerci tation</a></li>
<li><a href="#">Tincidunt laoreet</a></li>
<li><a href="#">Dolore magna aliquam</a></li>
<li><a href="#">Suscipit lobortis nisl</a></li>
<li><a href="#">Nostrud exerci tation</a></li>
<li><a href="#">Tincidunt laoreet</a></li>
<li><a href="#">Dolore magna aliquam</a></li>
<li><a href="#">Suscipit lobortis nisl</a></li>
</ul>
</div>
</div>
<img src="images/round.jpg" alt="" width="335" height="8" />
</div>
<div id="footer">
Copyright © 2007 Little Cafe.<br />
All Rights Reserved. <a href="#">Privacy Policy</a> • <a href="#">Terms Of Use</a>
</div>
<img src="images/botbg.gif" alt="" width="582" height="6" />
</div>
</body>
</html>
CSS source code: (style.css)
*{
margin:0px;
padding:0px
}
img{border:0px}
html{
width:100%;
height:100%;
background-image:url(images/wallpaper.png);
background-position:top left;
}
body{
width:582px;
margin:auto;
padding:110px 0 0 0
}
#content{
background-image:url(images/topbg.gif);
background-position:top left;
background-repeat:no-repeat;
float:left;
width:100%;
padding:6px 0 0 0;
}
#content img{float:left}
#left{
background-color:#b38736;
padding:15px 0 15px 1px;
width:246px;
float:left
}
#left img {float:left}
.button{
border:0px;
cursor:pointer;
cursor:hand;
width:246px;
height:43px;
float:left
}
.but1
{
background-image:url(images/button1.gif);
background-position:top left;
background-repeat:no-repeat;
background-color:#c9a563;
}
.but2
{
background-image:url(images/button2.gif);
background-position:top left;
background-repeat:no-repeat;
background-color:#c9a563;
}
.border{
border-bottom:1px solid #BABABA
}
#right{
float:left;
background-color:#b38736;
width:335px;
}
.name{
background-image:url(images/bgor.gif);
background-position:top left;
background-repeat:repeat-y;
padding:0 0 0 10px;
margin:15px 0 0 0;
float:left
}
#right img{
float:left
}
.menu li{
float:left;
list-style-type:none
}
#inside{
background-image:url(images/bgleft.gif);
background-position:top left;
background-repeat:no-repeat;
padding:15px 0 0 20px;
float:left;
width:315px;
background-color:#FFFFFF
}
.item1{
width:297px;
float:left;
padding:10px 0 22px 5px;
font-family:Tahoma;
font-size:11px;
}
.item1 p{
color:#525151;
width:160px;
float:left;
margin:0 20px 0 0
}
.item1 p strong{
color:#3C5828;
display:block;
float:left
}
.item1 a{
text-decoration:none;
font-family:Tahoma;
font-size:11px;
color:#3D3D3D;
font-weight:bold;
background-image:url(images/arrow.gif);
background-position:0px 5px;
background-repeat:no-repeat;
padding:0 0 0 8Px;
}
.hr{
height:1px;
float:left;
background-color:#D1D1D1;
border:0px;
margin:0 0 8Px 8Px;
display:inline
}
.item2{
width:310px;
float:left;
padding:10px 0 11px 5px;
font-family:Tahoma;
font-size:11px;
}
.item2 p{
color:#525151;
float:left;
margin:0 20px 0 0
}
.item2 p strong{
color:#3C5828;
display:block;
}
.item2 ul{
display:block;
float:left;
height:53px;
width:297px;
margin:5px 0 0 0px;
background-image:url(images/dots.gif);
background-position:135px 0px;
background-repeat:repeat-y
}
.item2 li{
list-style-type:none;
background-image:url(images/disc.gif);
background-position:0px 5px;
background-repeat:no-repeat;
float:left;
width:135px;
padding:0 0 0 10px
}
.item2 a{
color:#525151
}
#footer{
background-image:url(images/footbg.gif);
background-position:top left;
background-repeat:no-repeat;
background-color:#b38736;
float:left;
padding:10px 15px 8Px 30px;
font-family:Verdana;
font-size:11px;
color:#FFFFFF
}
#footer a{
color:#FFFFFF;
text-decoration:underline
}
Thankyou for reading, I hope some kind soul can help me!
Sincerely, james99.