Stevo22
01-20-2008, 09:12 AM
Hi Guys,
I've just started to code my first site (http://www.sharpstickenterprises.com/test.php) using css and cannot work out why my right content div is dropping down and lining up with the base of the header (centreband) div. I've checked it in IE6 and IE7 and FireFox and it looks the same.
There are some validation issues with the html but I can't see that causing the problem - not sure how to fix the validation errors anyway. Not sure if my css is entirely correct although it validates with 1 warning.
As this is my first 'hand coded' effort please feel free to advise on any other things that are not quite correct.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html;charset=iso-8859-1" />
<title>KUNST - The Band</title>
<link rel="stylesheet" type="text/css"
href="../css_stylesheets/kunst_basic.css" />
</head>
<body>
<div id="sitewrap">
<div id="leftstripe"></div>
<div id="leftcontent">
<span class="mainpic"><img src="/images/kunst_web_logo.jpg" alt="KUNST Picture" height="181" width="144" border="0" /></span>
<span id="kunstaretext">
<h2>KUNST are:</h2>
<div class="dotline"></div>
<p>Munkii
<span class="small">(Matt Spencer)</span>
<span class="italic">Vocals and Lyrics</span></p>
<div class="dotline"></div>
<p>Sideshow
<span class="small">(Tony Matticoli)</span>
<span class="italic">Lead Guitar</span></p>
<div class="dotline"></div>
<p>Wah Wah
<span class="small">(Chris Godsell)</span>
<span class="italic">Guitar (wah wah)</span></p>
<div class="dotline"></div>
<p>Stevo
<span class="small">(Steve Kelepouris)</span>
<span class="italic">Bass Guitar</span></p>
<div class="dotline"></div>
<p>Maddog
<span class="small">(Mark Kelepouris)</span>
<span class="italic">Drums</span></p>
<div class="dotline"></div>
</span>
</div><!-- end leftcontent -->
<div id="mainheader">
<div id="menuwrap">
<!--<img class="cleff" src="/images/blocktest.jpg" alt="" height="88" width="80">-->
<ul class="menu">
<li><a href="../index.php">Home</a></li>
<li><a href="/pages/ourmusic">Our Music</a></li>
<li><a href="/pages/jammplan">Jamm Plan</a></li>
<li><a href="/pages/pics">Pictures</a></li>
<li><a href="/pages/downloads">Misc</a></li>
<li><a href="/pages/feedback">Feedback</a></li>
</ul>
</div><!-- end menuwrap -->
<div id="centreband"></div>
<span id="quotestart"><h3>“</h3></span>
<span id="quoteend"><h3>”</h3></span>
<span id="mainquotetext">
<h1>We don't have any particular racial, political or religious
<br />affiliations - We just play the music as we feel it!</h1>
</span>
</div><!-- end header -->
<!-- home page content -->
<div id="pagecontent">
This is where the content will go.
</div>
<div id="rightcontent">
</div><!-- end rightcontent -->
<div id="rightstripe"></div>
</div> <!-- end sitewrap -->
</body>
</html>
* {
border : 0;
padding : 0;
margin : 0;
}
html, body {
background-color : #2b2b2b;
margin : 0;
padding : 0;
height : 100%;
border : 0;
}
p {
margin : 0;
}
#sitewrap {
margin : 0 auto;
width : 910px;
height : 100%;
}
#leftstripe {
background-image : url("../images/left_stripe.jpg");
background-repeat : repeat;
display : inline;
position : relative;
width : 20px;
height : 100%;
float : left;
}
#leftcontent {
background-color : #000058;
display : inline;
position : relative;
width : 144px;
height : 100%;
float : left;
}
#mainheader {
background-color : orange;
display : inline;
position : relative;
width : 582px;
height : 181px;
float : left;
}
#pagecontent {
background-color : purple;
display : inline;
position : relative;
width : 582px;
height : 100%;
float : left;
overflow : hidden;
}
#centreband {
background-color : #e29606;
display : inline;
position : absolute;
top : 90px;
width : 582px;
height : 90px;
float : left;
border-top : 1px solid #dc9000;
border-bottom : 1px solid #dc9000;
}
#rightcontent {
background-color : #000058;
display : inline;
position : relative;
width : 144px;
height : 100%;
float : left;
}
#rightstripe {
background-image : url("../images/right_stripe.jpg");
background-repeat : repeat;
display : inline;
width : 20px;
height : 100%;
float : left;
}
.mainpic {
background-image : none;
display : block;
position : relative;
float : left;
clear : both;
border-bottom : 1px solid black;
}
#mainquotetext {
display : block;
position : absolute;
top : 111px;
left : 50px;
width : 600px;
float : left;
}
#kunstaretext {
position : relative;
top : 10px;
left : 10px;
float : left;
}
p {
color : #f0e68c;
font-size : 12px;
font-family : Verdana;
line-height : 14px;
background-color : transparent;
}
h1 {
color : #484848;
font-size : 18px;
font-family : "Trebuchet MS";
font-style : italic;
font-weight : bold;
line-height : 24px;
background-color : transparent;
text-align : left;
}
h2 {
color : white;
font-size : 12px;
font-family : Verdana;
font-style : normal;
font-weight : bold;
line-height : 14px;
background-color : transparent;
text-align : left;
}
h3 {
color : orange;
font-size : 90px;
font-family : "Times New Roman", Times;
font-style : italic;
font-weight : bold;
text-align : left;
}
#quotestart {
position : absolute;
top : 80px;
left : 3px;
float : left;
}
#quoteend {
position : absolute;
top : 113px;
left : 463px;
float : right;
}
.italic {
color : white;
font-size : 10px;
font-style : italic;
line-height : 13px;
display : block;
}
.small {
color : white;
font-size : 10px;
font-style : normal;
line-height : 13px;
display : block;
}
.dotline {
display : block;
margin-top : 6px;
margin-bottom : 4px;
position : relative;
width : 124px;
height : 1px;
border-top : 1px dotted orange;
}
#menuwrap {
position : relative;
width : 582px;
height : 88px;
}
ul {
list-style-type : none;
width : 100%;
}
li {
float : left;
}
.menu a {
color : white;
font : bold 10px Verdana, Arial;
text-decoration : none;
background : black;
text-align : center;
display : block;
padding-top : 2px;
position : relative;
top : 29px;
left : 15px;
width : 82px;
height : 16px;
float : left;
border-style : solid;
border-width : 1px 5px;
border-color : orange;
}
.menu a:hover {
color : white;
background : #b2001a;
border-style : solid;
border-width : 1px 5px;
border-color : white;
}
#feedback_form {
position : absolute;
top : 200px;
left : 160px;
float : left;
}
Help would be appreciated.
ta.
I've just started to code my first site (http://www.sharpstickenterprises.com/test.php) using css and cannot work out why my right content div is dropping down and lining up with the base of the header (centreband) div. I've checked it in IE6 and IE7 and FireFox and it looks the same.
There are some validation issues with the html but I can't see that causing the problem - not sure how to fix the validation errors anyway. Not sure if my css is entirely correct although it validates with 1 warning.
As this is my first 'hand coded' effort please feel free to advise on any other things that are not quite correct.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html;charset=iso-8859-1" />
<title>KUNST - The Band</title>
<link rel="stylesheet" type="text/css"
href="../css_stylesheets/kunst_basic.css" />
</head>
<body>
<div id="sitewrap">
<div id="leftstripe"></div>
<div id="leftcontent">
<span class="mainpic"><img src="/images/kunst_web_logo.jpg" alt="KUNST Picture" height="181" width="144" border="0" /></span>
<span id="kunstaretext">
<h2>KUNST are:</h2>
<div class="dotline"></div>
<p>Munkii
<span class="small">(Matt Spencer)</span>
<span class="italic">Vocals and Lyrics</span></p>
<div class="dotline"></div>
<p>Sideshow
<span class="small">(Tony Matticoli)</span>
<span class="italic">Lead Guitar</span></p>
<div class="dotline"></div>
<p>Wah Wah
<span class="small">(Chris Godsell)</span>
<span class="italic">Guitar (wah wah)</span></p>
<div class="dotline"></div>
<p>Stevo
<span class="small">(Steve Kelepouris)</span>
<span class="italic">Bass Guitar</span></p>
<div class="dotline"></div>
<p>Maddog
<span class="small">(Mark Kelepouris)</span>
<span class="italic">Drums</span></p>
<div class="dotline"></div>
</span>
</div><!-- end leftcontent -->
<div id="mainheader">
<div id="menuwrap">
<!--<img class="cleff" src="/images/blocktest.jpg" alt="" height="88" width="80">-->
<ul class="menu">
<li><a href="../index.php">Home</a></li>
<li><a href="/pages/ourmusic">Our Music</a></li>
<li><a href="/pages/jammplan">Jamm Plan</a></li>
<li><a href="/pages/pics">Pictures</a></li>
<li><a href="/pages/downloads">Misc</a></li>
<li><a href="/pages/feedback">Feedback</a></li>
</ul>
</div><!-- end menuwrap -->
<div id="centreband"></div>
<span id="quotestart"><h3>“</h3></span>
<span id="quoteend"><h3>”</h3></span>
<span id="mainquotetext">
<h1>We don't have any particular racial, political or religious
<br />affiliations - We just play the music as we feel it!</h1>
</span>
</div><!-- end header -->
<!-- home page content -->
<div id="pagecontent">
This is where the content will go.
</div>
<div id="rightcontent">
</div><!-- end rightcontent -->
<div id="rightstripe"></div>
</div> <!-- end sitewrap -->
</body>
</html>
* {
border : 0;
padding : 0;
margin : 0;
}
html, body {
background-color : #2b2b2b;
margin : 0;
padding : 0;
height : 100%;
border : 0;
}
p {
margin : 0;
}
#sitewrap {
margin : 0 auto;
width : 910px;
height : 100%;
}
#leftstripe {
background-image : url("../images/left_stripe.jpg");
background-repeat : repeat;
display : inline;
position : relative;
width : 20px;
height : 100%;
float : left;
}
#leftcontent {
background-color : #000058;
display : inline;
position : relative;
width : 144px;
height : 100%;
float : left;
}
#mainheader {
background-color : orange;
display : inline;
position : relative;
width : 582px;
height : 181px;
float : left;
}
#pagecontent {
background-color : purple;
display : inline;
position : relative;
width : 582px;
height : 100%;
float : left;
overflow : hidden;
}
#centreband {
background-color : #e29606;
display : inline;
position : absolute;
top : 90px;
width : 582px;
height : 90px;
float : left;
border-top : 1px solid #dc9000;
border-bottom : 1px solid #dc9000;
}
#rightcontent {
background-color : #000058;
display : inline;
position : relative;
width : 144px;
height : 100%;
float : left;
}
#rightstripe {
background-image : url("../images/right_stripe.jpg");
background-repeat : repeat;
display : inline;
width : 20px;
height : 100%;
float : left;
}
.mainpic {
background-image : none;
display : block;
position : relative;
float : left;
clear : both;
border-bottom : 1px solid black;
}
#mainquotetext {
display : block;
position : absolute;
top : 111px;
left : 50px;
width : 600px;
float : left;
}
#kunstaretext {
position : relative;
top : 10px;
left : 10px;
float : left;
}
p {
color : #f0e68c;
font-size : 12px;
font-family : Verdana;
line-height : 14px;
background-color : transparent;
}
h1 {
color : #484848;
font-size : 18px;
font-family : "Trebuchet MS";
font-style : italic;
font-weight : bold;
line-height : 24px;
background-color : transparent;
text-align : left;
}
h2 {
color : white;
font-size : 12px;
font-family : Verdana;
font-style : normal;
font-weight : bold;
line-height : 14px;
background-color : transparent;
text-align : left;
}
h3 {
color : orange;
font-size : 90px;
font-family : "Times New Roman", Times;
font-style : italic;
font-weight : bold;
text-align : left;
}
#quotestart {
position : absolute;
top : 80px;
left : 3px;
float : left;
}
#quoteend {
position : absolute;
top : 113px;
left : 463px;
float : right;
}
.italic {
color : white;
font-size : 10px;
font-style : italic;
line-height : 13px;
display : block;
}
.small {
color : white;
font-size : 10px;
font-style : normal;
line-height : 13px;
display : block;
}
.dotline {
display : block;
margin-top : 6px;
margin-bottom : 4px;
position : relative;
width : 124px;
height : 1px;
border-top : 1px dotted orange;
}
#menuwrap {
position : relative;
width : 582px;
height : 88px;
}
ul {
list-style-type : none;
width : 100%;
}
li {
float : left;
}
.menu a {
color : white;
font : bold 10px Verdana, Arial;
text-decoration : none;
background : black;
text-align : center;
display : block;
padding-top : 2px;
position : relative;
top : 29px;
left : 15px;
width : 82px;
height : 16px;
float : left;
border-style : solid;
border-width : 1px 5px;
border-color : orange;
}
.menu a:hover {
color : white;
background : #b2001a;
border-style : solid;
border-width : 1px 5px;
border-color : white;
}
#feedback_form {
position : absolute;
top : 200px;
left : 160px;
float : left;
}
Help would be appreciated.
ta.