I have managed to get he menu horizontal and even with the image for the background, but I cannot get the menu to start on the left hand side.
There is a space I cannot get rid off and so the last menu tab is dropping to the next line.
old menu using tables and html :
new menu with css :
CSS......
Why is CSS so dificult to understand and use? but i'm close - real close!
"In complete darkness we are all the same, only our knowledge and wisdom separates us, don't let your eyes deceive you.
There is a space I cannot get rid off and so the last menu tab is dropping to the next line.
old menu using tables and html :
new menu with css :
CSS......
Code:
/** Dropdowns **/
#nav ul { /* all lists */
padding: 0px;
margin: 0px;
list-style: none;
float: left;
width: 90px;
position:relative;
overflow:visible;
}
#nav li { /* all list items */
position: relative;
float: left;
width: 90px;
display:block;
height:auto;
}
#nav li ul { /* second-level lists */
position: absolute;
left: -1000px;
margin-left: -35px;
margin-top: 0px;
}
#nav li a {
width: 90px;
display: block;
/*font-weight: bold;*/
text-decoration: none;
padding: 0px 0px;
margin: 0;
color: #FFFFFF;
background: #5D7AC5;
text-shadow: 0px 1px 1px rgb(250,250,250);
}
#nav li a:hover {
color: #FFFFFF;
background: #5D7AC5;
border: 1px solid rgb(100,100,100);
text-shadow: 0px 0px 3px rgb(250,250,250);
}
#nav li a {
border-top: 1px solid rgb(240,240,240);
border-right: 1px solid rgb(160,160,160);
border-bottom: 1px solid rgb(160,160,160);
border-left: 1px solid rgb(240,240,240);
}
#nav a.encl {
background: #5D7AC5 center no-repeat url('[URL unfurl="true"]http://www.stepnstomp.co.uk/images/buttons/button1up.gif');[/URL]
border-top: 0px solid rgb(240,240,240);
border-right: 0px solid rgb(160,160,160);
border-bottom: 01px solid rgb(160,160,160);
border-left: 0px solid rgb(240,240,240);
height:25px;
padding:1px;
}
#nav a.encl:hover {
background: #5D7AC5 center no-repeat url('[URL unfurl="true"]http://www.stepnstomp.co.uk/images/buttons/button1up.gif');[/URL]
border-top: 0px solid rgb(240,240,240);
border-right: 0px solid rgb(160,160,160);
border-bottom: 01px solid rgb(160,160,160);
border-left: 0px solid rgb(240,240,240);
height:25px;
padding:1px;
}
#nav li:hover ul ul, #nav li:hover ul ul ul, #nav li:hover ul ul ul ul, #nav li.iehover ul ul, #nav li.iehover ul ul ul, #nav li.iehover ul ul ul ul {
left: -1000px;
}
#nav li:hover ul, #nav li li:hover ul, #nav li li li:hover ul, #nav li li li li:hover ul, #nav li.iehover ul, #nav li li.iehover ul, #nav li li li.iehover ul, #nav li li li li.iehover ul{ /* lists nested under hovered list items */
left: auto;
}
/** Support for the "iehover-fix.js" **/
#nav iframe {
position: absolute;
left: 0;
top: 0;
z-index: 0;
filter: progid:DXImageTransform.Microsoft.Alpha(style=0,opacity=0);
}
/** end **/
Why is CSS so dificult to understand and use? but i'm close - real close!
"In complete darkness we are all the same, only our knowledge and wisdom separates us, don't let your eyes deceive you.