AdamSayer
04-03-2008, 01:57 PM
I seem to be having a little trouble implementing suckerfish's drop down nav into a site im doing some work on. I'm basically putting the code behind a design that was made by the client. They wanted the drop down navs, which wasnt really a problem, I just can't seem to get the stupid thing to center on the page.
http://www.alistapart.com/articles/dropdowns
I've posted the page at:
http://www.adamsayer.com/heavens_magic/index.html
(http://www.adamsayer.com/heavens_magic/index.html)
The code for the styl sheet is this:
body {
font-family: arial, helvetica, serif;
font-size: 80%;
padding: 2em;
margin: 0;
list-style: none;
background-color:#FAF9FF;
}
#content {
width: 800px;
background-color: #faf9ff;
padding: 1em 0;
margin: auto;
voice-family: "\"}\"";
voice-family:inherit;
width: 800px;
list-style:none;
}
html>body #content {
width: 800px;
text-align: justify;
}
#nav {
width:auto;
display: block;
text-align:center;
margin-left:auto;
margin-right:auto;
list-style:none;
}
h1 {
text-align: center;
padding: 0 0 0.25em 0;
margin: 0;
}
ul {
padding: 0;
margin: 0;
list-style: none;
}
li {
display:block;
margin-left:auto;
margin-right:auto;
float: left;
position: relative;
width: auto;
text-align: center;
cursor: default;
}
li ul {
display: none;
position: absolute;
top: 1em;
left: 0;
background: url(images/linkbg.jpg) repeat;
padding: 5px;
}
li > ul {
top: auto;
left: auto;
}
li:hover ul, li.over ul{
display: block;
}
clear: left
This is really one of my first forrays into CSS, but I feel like I've got a decent grasp on it. Any help is appreciated
http://www.alistapart.com/articles/dropdowns
I've posted the page at:
http://www.adamsayer.com/heavens_magic/index.html
(http://www.adamsayer.com/heavens_magic/index.html)
The code for the styl sheet is this:
body {
font-family: arial, helvetica, serif;
font-size: 80%;
padding: 2em;
margin: 0;
list-style: none;
background-color:#FAF9FF;
}
#content {
width: 800px;
background-color: #faf9ff;
padding: 1em 0;
margin: auto;
voice-family: "\"}\"";
voice-family:inherit;
width: 800px;
list-style:none;
}
html>body #content {
width: 800px;
text-align: justify;
}
#nav {
width:auto;
display: block;
text-align:center;
margin-left:auto;
margin-right:auto;
list-style:none;
}
h1 {
text-align: center;
padding: 0 0 0.25em 0;
margin: 0;
}
ul {
padding: 0;
margin: 0;
list-style: none;
}
li {
display:block;
margin-left:auto;
margin-right:auto;
float: left;
position: relative;
width: auto;
text-align: center;
cursor: default;
}
li ul {
display: none;
position: absolute;
top: 1em;
left: 0;
background: url(images/linkbg.jpg) repeat;
padding: 5px;
}
li > ul {
top: auto;
left: auto;
}
li:hover ul, li.over ul{
display: block;
}
clear: left
This is really one of my first forrays into CSS, but I feel like I've got a decent grasp on it. Any help is appreciated