Strange issue centering menu ul
SCHOOL ME!
I have tried putting the following ul construct into centered divs, tables, and even trying to center the ul construct itself ie: <ul align="center"> but to no avail. You can see it live at
Web development: programming: marketing, New media printing, and video production
The header is setting right where I want it but the menu should be directly below the header and I cannot get it to center there. The following are my index and home.css pages:
***INDEX***
<!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">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Web development: programming: marketing, New media printing, and video production</title>
<link href="home.css" rel="stylesheet" type="text/css" />
</head>
<body>
<table class="page">
<table align="center" id="header">
</table><!-- header -->
<!--
<center><th id="home"><ul><li class="">About Us</li><li>Contact Us</li></ul></th><th id="web_design"></th><th id="web_programming"></th><th id="web_marketing"></th><th id="examples"></th></center>
</table><!-- main_menu_bar -->
<ul id="jsddm">
<li class="jsddm_li_invis" onmouseover="this.className='jsddm_li';" onmouseout="this.className='jsddm_li_invis';"><a href="#">JavaScript</a>
<ul >
<li><a href="#">Drop Down Menu</a></li>
<li><a href="#">jQuery Plugin</a></li>
<li><a href="#">Ajax Navigation</a></li>
</ul>
</li>
<li class="jsddm_li_invis" onmouseover="this.className='jsddm_li';" onmouseout="this.className='jsddm_li_invis';"><a href="#">Effect</a>
<ul>
<li><a href="#">Slide Effect</a></li>
<li><a href="#">Fade Effect</a></li>
<li><a href="#">Opacity Mode</a></li>
<li><a href="#">Drop Shadow</a></li>
<li><a href="#">Semitransparent</a></li>
</ul>
</li>
<li class="jsddm_li_invis" onmouseover="this.className='jsddm_li';" onmouseout="this.className='jsddm_li_invis';"><a href="#">Navigation</a></li>
<li class="jsddm_li_invis" onmouseover="this.className='jsddm_li';" onmouseout="this.className='jsddm_li_invis';"><a href="#">HTML/CSS</a></li>
<li class="jsddm_li_invis" onmouseover="this.className='jsddm_li';" onmouseout="this.className='jsddm_li_invis';"><a href="#">Help</a></li>
</ul>
</table><!-- page -->
</body>
</html>
**/INDEX**
**HOME.CSS**
@charset "utf-8";
/* CSS Document */
.page{
width:850px;
height:100%;
}
table#header{
width:830px;
height:140px;
background-image:url(IMAGES/header.png);
}
#jsddm
{ margin: 0;
padding: 0;}
.jsddm_li
{ float: left;
list-style: none;
font: 12px Tahoma, Arial;}
.jsddm_li a
{ display: block;
background: #20548E;
padding: 5px 12px;
text-decoration: none;
border-right: 1px solid white;
width: 70px;
color: #EAFFED;
white-space: nowrap;}
.jsddm_li a:hover
{ background: #1A4473;}
.jsddm_li_invis
{ float: left;
list-style: none;
font: 12px Tahoma, Arial;}
.jsddm_li_invis a
{ display: block;
background: #20548E;
padding: 5px 12px;
text-decoration: none;
border-right: 1px solid white;
width: 70px;
color: #EAFFED;
white-space: nowrap;}
.jsddm_li_invis a:hover
{ background: #1A4473;}
.jsddm_li_invis ul
{ margin: 0;
padding: 0;
position: absolute;
visibility:hidden;
border-top: 1px solid white;}
.jsddm_li ul
{ margin: 0;
padding: 0;
position: absolute;
visibility:visible;
border-top: 1px solid white;}
.jsddm_li ul li
{ float: none;
display: inline;}
.jsddm_li ul li a
{ width: auto;
background: #9F1B1B;}
.jsddm_li ul li a:hover
{ background: #7F1616;}
.jsddm_li_invis ul li
{ float: none;
display: inline;}
.jsddm_li_invis ul li a
{ width: auto;
background: #9F1B1B;}
.jsddm_li_invis ul li a:hover
{ background: #7F1616;}
**/HOME.CSS**
So does anyone have any ideas on why my code went cooky?
Convert your PSD to HTML
Convert your Image to Code
Convert PSD to HTML
Web Design Gallery