You are here: need help with CSS menu(works fine in firefox) « HTML « IT news, forums, messages
need help with CSS menu(works fine in firefox)

Posted by surf on 02/04/07 14:12

Maybe someone could give me some quick help on this or pointer. The
following is basic code
for a CSS style menu. It seems to work fine in firefox, but in IE the
pulldowns off the menu do not appear. I'm a bit new at this, can
someone tell me what to try ?



<style type="text/css">
body {
/* background: black */
background: black;

}
#subnav {
width: 900px;
height: 2.7em;
margin: 0 auto;
/*background: #fff url(../images/navfade.gif) repeat-x;*/
background: #bc8f8f url(/public/images/sh42.jpg) no-repeat bottom;
font-size: 14;
}

#nav, #nav ul {
width: 31.7em;
padding: 0;
margin: 0 auto;
list-style: none;
}

#subnav ul.admin {
width: 36.3em;
}

#nav a {
display: block;
padding: 0 0.5em;
text-decoration: none;
}

#nav li {
float: left;
}

#nav li ul {
position: absolute;
left: -999em;
width: 10em;
background-color: #ccc;
}




}

</style>

<div id="subnav">

<ul id="nav">


<li><a href="#">Gigs</a>
<ul>
<li> <a href="/main/list_gigs/1">Upcoming Gigs</a> </li>
<li> <a href="/main/list_gigs/0">Past Gigs</a> </
li>

</ul>
</li>
<li><a href="#">Bio</a>
<ul>

<li> <a href="/main/show_bio/1">John </a> </li>

<li> <a href="/main/show_bio/2">Joe</a> </li>

<li> <a href="/main/show_bio/3">Tom</a> </li>

<li> <a href="/main/show_bio/4">Larry</a> </li>

</ul>
</li>

</ul>

</div> <!-- eof #lvl2nav -->

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация