I am trying to horizontically place my links at the bottom of the header, in its own div.
But having problems, ie the numbers of the list are still there and the links are placed vertical and not horizontal, I thought the display: inline; would get rid of them being vertical.
[code=css]
body {
font-family: Verdana, sans-serif;
margin: 0;
padding: 0;
}
#container {
position: relative;
width: 80em;
background-color: #E60073;
margin-left: auto;
margin-right: auto;
}
#header {
height: 8em;
padding: 1em;
margin: auto;
}
img {
border:0;
width:750px;
height:110px;
margin: auto;
clear: both;
align: center;
}
#main {
margin-left: 12em;
}
#links {
margin: 0;
padding: 0.5em, 3em;
color: #FFFFFF;
background: #6600CC;
}
ol {
padding: 0;
color:#FFFFFF;
font-family: verdana. sans-serif;
font-size:1em;
background-color:#6600CC
}
#linksli {
display: inline;
border-right: 1px, solid, #FFFFFF;
margin-right: 0.5em;
padding-right: 0.75em;
font-weight: bold;
}[/code]
the html
[html]
<html>
<head>
<meta http-equiv="Content-Language" content="en-gb">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>New Page 1</title>
<link rel="stylesheet " type="text/css" href="new_page_ 1.css">
</head>
<div id="container" >
<div id="header">
<body>
<img src="images/networkartslogo .gif" alt="Logo" /><div id="links">
<div id="linksli">
<ol><div id="ol">
<li>Contacts</li>
<li>Referrals </li>
<li>About</li>
<li>Benefits</li>
<li>Your Say</li>
<li>Site Map</li>
</ol></div>
</div>
</div>
</body>
</html>[/html]
But having problems, ie the numbers of the list are still there and the links are placed vertical and not horizontal, I thought the display: inline; would get rid of them being vertical.
[code=css]
body {
font-family: Verdana, sans-serif;
margin: 0;
padding: 0;
}
#container {
position: relative;
width: 80em;
background-color: #E60073;
margin-left: auto;
margin-right: auto;
}
#header {
height: 8em;
padding: 1em;
margin: auto;
}
img {
border:0;
width:750px;
height:110px;
margin: auto;
clear: both;
align: center;
}
#main {
margin-left: 12em;
}
#links {
margin: 0;
padding: 0.5em, 3em;
color: #FFFFFF;
background: #6600CC;
}
ol {
padding: 0;
color:#FFFFFF;
font-family: verdana. sans-serif;
font-size:1em;
background-color:#6600CC
}
#linksli {
display: inline;
border-right: 1px, solid, #FFFFFF;
margin-right: 0.5em;
padding-right: 0.75em;
font-weight: bold;
}[/code]
the html
[html]
<html>
<head>
<meta http-equiv="Content-Language" content="en-gb">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>New Page 1</title>
<link rel="stylesheet " type="text/css" href="new_page_ 1.css">
</head>
<div id="container" >
<div id="header">
<body>
<img src="images/networkartslogo .gif" alt="Logo" /><div id="links">
<div id="linksli">
<ol><div id="ol">
<li>Contacts</li>
<li>Referrals </li>
<li>About</li>
<li>Benefits</li>
<li>Your Say</li>
<li>Site Map</li>
</ol></div>
</div>
</div>
</body>
</html>[/html]
Comment