-
June 20th, 2004, 09:11 PM
#1
CSS problem with UL
hey all,
I'm making a horizontal menu using CSS for a website. I can get margin-left to work, but I can't get margin-top or padding-top to work. The text just wants to stay near the top. I'd like it vertically centered, or at least able to move down in pixels. Am I doing something messed?
Here's the code:
#menu {
height: 25px;
width: 700px;
background-image: url(menu-bg.gif);
font-family: trebuchet MS, tahoma;
font-size: 13px;
font-weight: bold;
color: black;
border: 0;
}
#menu ul {
margin-left: 15px;
display: inline;
}
#menu li {
margin-top: 15px; /*just trying to do this */
display: inline;
}
#menu a {
color: black;
text-decoration: none;
}
#menu a:hover {
text-decoration: underline;
}
Here's the html:
<div id="menu">
<ul>
<li><a href=#>one</a></li>
<li><a href=#>two</a></li>
<li><a href=#>three</a></li>
<li><a href=#>four</a></li>
<li><a href=#>five</a></li>
<li><a href=#>six</a></li>
<li><a href=#>seven</a></li>
</ul>
</div>
Do you smell something burning?....
Similar Threads
-
By sLIVER in forum Tech-To-Tech
Replies: 0
Last Post: June 20th, 2004, 08:58 PM
-
By acord in forum Windows 95/98/98SE/ME
Replies: 3
Last Post: March 18th, 2004, 04:37 PM
-
By Mrdyg in forum Tech-To-Tech
Replies: 7
Last Post: October 14th, 2001, 04:39 PM
-
By ph1sh in forum Video Adapter/Monitor Drivers
Replies: 6
Last Post: May 14th, 2001, 10:10 AM
-
By WestleyL in forum Windows 95/98/98SE/ME
Replies: 3
Last Post: March 13th, 2000, 02:54 AM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
|
Bookmarks