chris9902
10-24-2003, 10:19 AM
i am making a site and am not really very good with CSS.
i have a logo pic up top then under it i want 6 links going left-2- right.
but when i try to do it they go down and not to the side
this is the code; (ignore the colors they are for testing)
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css">
div#logo {
position:absolute;
width:700px;
height:80px;
top:20px;
left:0px;
background-color:#999999;
border-top:5px solid #000;
}
div#nav {
position:absolute;
width:700px;
height:25px;
top:105px;
left:0px;
background-color:#555555;
}
div#nav a:link {
display:block;
background-color:#000099;
text-decoration: none;
border: 1px solid #ff0000;
width:100px;
height:20px;
}
div#nav a:visited {
display:block;
background-color:#000099;
text-decoration: none;
border: 1px solid #ff0000;
width:100px;
height:20px;
}
div#nav a:hover {
display:block;
background-color:#000000;
text-decoration: none;
border: 1px solid #ff0000;
width:100px;
height:20px;
}
body {
background-color:#f4f4f4;
}
</style>
</head>
<body>
<div id="logo"></div>
<div id="nav"><a href="yaoo.com">yahoo</a></div>
</body>
</html>
can you help me:)
i have a logo pic up top then under it i want 6 links going left-2- right.
but when i try to do it they go down and not to the side
this is the code; (ignore the colors they are for testing)
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css">
div#logo {
position:absolute;
width:700px;
height:80px;
top:20px;
left:0px;
background-color:#999999;
border-top:5px solid #000;
}
div#nav {
position:absolute;
width:700px;
height:25px;
top:105px;
left:0px;
background-color:#555555;
}
div#nav a:link {
display:block;
background-color:#000099;
text-decoration: none;
border: 1px solid #ff0000;
width:100px;
height:20px;
}
div#nav a:visited {
display:block;
background-color:#000099;
text-decoration: none;
border: 1px solid #ff0000;
width:100px;
height:20px;
}
div#nav a:hover {
display:block;
background-color:#000000;
text-decoration: none;
border: 1px solid #ff0000;
width:100px;
height:20px;
}
body {
background-color:#f4f4f4;
}
</style>
</head>
<body>
<div id="logo"></div>
<div id="nav"><a href="yaoo.com">yahoo</a></div>
</body>
</html>
can you help me:)