rhsunderground
12-11-2007, 05:25 PM
this afternoon i've thrown together http://kayeskinner.com/ and i'm currently frustrated by the menu buttons. as you look at the page, "the mind" creeps too far to the right and this overhang is visable. thoughts as to why?
html:
<!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" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>ben at kayeskinner dot com</title>
<link rel="shortcut icon" href="favicon.png" />
<link rel="stylesheet" href="style2.css" type="text/css" media="screen" />
</head>
<body>
<div id="content">
<div id="head">
</div>
<div id="menu">
<ul>
<a href="index.php"><li id="home"><img src="images/home.png" alt="Home"></li></a>
<a href="man.php"><li id="man"><img src="images/man.png" alt="The Man"></li></a>
<a href="music.php"><li id="music"><img src="images/music.png" alt="The Music"></li></a>
<a href="http://kayeskinner.com/blegh"><li id="mind"><img src="images/mind.png" alt="The Mind"></li></a>
</ul>
</div>
<div id="holder">
<div id="leftside">
<p>Happy Tuesday night. We hope finals are going well for everyone and that you all have a great break.</p>
</div>
</div>
<div id="foot">
</div>
</div>
</body>
</html>
css:
body {
background: url("images/background2.png") no-repeat right top;
background-color: #330000;
color: #000000;
max-width : 900px;
margin: 0px auto;
}
#content {
padding-top:0px;
background: url("images/textbg.gif") repeat-y center top;
background-color: #CFC3C3;
}
#head {
padding-top: 10px;
background: url("images/header.png") no-repeat center;
background-color:transparent;
height:150px;
}
#menu {
list-style: none;
margin: 0px;
padding: 0px;
text-align: center;
width: 100%;
background-color: transparent;
}
#menu img a {
text-decoration: none;
border: 0px;
}
#menu ul {
display: inline;
}
#menu li {
display: inline;
width: 200px;
margin: 0px;
padding: 0px;
}
#menu a {
color: #330000;
margin: 0px;
padding: 0px;
}
#menu2 {
font-size: 20px;
list-style: none;
width: 100%;
margin: auto;
padding: 0px;
text-align: center;
border-top: 2px solid #330000;
}
#menu2 ul {
display: inline;
}
#menu2 li {
display: inline;
}
#menu2 a {
color: #336699;
margin: 0px;
padding: 2px 4px;
font-weight:bold;
text-decoration:none;
}
#menu2 li:hover {
background-color: #526DA4;
}
#menu2 li:hover a {
color: #fff; }
#holder {
margin: 0px;
padding: 0px;
}
#leftside {
text-align: center;
padding: 0px;
width : 100%;
background: url("images/content.gif") no-repeat top center;
background-color: transparent;
min-height: 450px;
}
#foot {
padding-bottom: 5px;
background: url("mono.png") no-repeat bottom;
height:100px;
clear:both;
}
html:
<!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" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>ben at kayeskinner dot com</title>
<link rel="shortcut icon" href="favicon.png" />
<link rel="stylesheet" href="style2.css" type="text/css" media="screen" />
</head>
<body>
<div id="content">
<div id="head">
</div>
<div id="menu">
<ul>
<a href="index.php"><li id="home"><img src="images/home.png" alt="Home"></li></a>
<a href="man.php"><li id="man"><img src="images/man.png" alt="The Man"></li></a>
<a href="music.php"><li id="music"><img src="images/music.png" alt="The Music"></li></a>
<a href="http://kayeskinner.com/blegh"><li id="mind"><img src="images/mind.png" alt="The Mind"></li></a>
</ul>
</div>
<div id="holder">
<div id="leftside">
<p>Happy Tuesday night. We hope finals are going well for everyone and that you all have a great break.</p>
</div>
</div>
<div id="foot">
</div>
</div>
</body>
</html>
css:
body {
background: url("images/background2.png") no-repeat right top;
background-color: #330000;
color: #000000;
max-width : 900px;
margin: 0px auto;
}
#content {
padding-top:0px;
background: url("images/textbg.gif") repeat-y center top;
background-color: #CFC3C3;
}
#head {
padding-top: 10px;
background: url("images/header.png") no-repeat center;
background-color:transparent;
height:150px;
}
#menu {
list-style: none;
margin: 0px;
padding: 0px;
text-align: center;
width: 100%;
background-color: transparent;
}
#menu img a {
text-decoration: none;
border: 0px;
}
#menu ul {
display: inline;
}
#menu li {
display: inline;
width: 200px;
margin: 0px;
padding: 0px;
}
#menu a {
color: #330000;
margin: 0px;
padding: 0px;
}
#menu2 {
font-size: 20px;
list-style: none;
width: 100%;
margin: auto;
padding: 0px;
text-align: center;
border-top: 2px solid #330000;
}
#menu2 ul {
display: inline;
}
#menu2 li {
display: inline;
}
#menu2 a {
color: #336699;
margin: 0px;
padding: 2px 4px;
font-weight:bold;
text-decoration:none;
}
#menu2 li:hover {
background-color: #526DA4;
}
#menu2 li:hover a {
color: #fff; }
#holder {
margin: 0px;
padding: 0px;
}
#leftside {
text-align: center;
padding: 0px;
width : 100%;
background: url("images/content.gif") no-repeat top center;
background-color: transparent;
min-height: 450px;
}
#foot {
padding-bottom: 5px;
background: url("mono.png") no-repeat bottom;
height:100px;
clear:both;
}