PDA

View Full Version : Problems with Top Navigational Bar



Peter Reinert
01-20-2006, 01:57 PM
hi peoples, first i have to say, that i'am german, so please excuse my english, and second i'm not really good in programming, so...i'm working with following script:

http://www.dynamicdrive.com/dynamicindex1/sm/index.htm


my problem is, that the mainmenu starts right left and thats not what i want, i want that it starts with a distance from perhaps 20 px. Now i dont know how and where to manipulate the script...
anyone can help me?

thx peter

jscheuer1
01-20-2006, 04:15 PM
Add to the style section on the page (from sample.htm, additions red):


<style>
all.clsMenuItemNS, .clsMenuItemIE{text-decoration: none; font: bold 12px Arial; color: white; cursor: hand; z-index:100}
#MainTable A:hover {color: yellow;}

#MainTable {
width:90%;
padding-left:20px;
}
</style>

Peter Reinert
01-21-2006, 08:58 AM
ok, thank you john, it works, but another problem is, that the menubar is in IE6 higher than in mozilla 1.0.7. do you know if i can modify the script,for it stays the same height?

jscheuer1
01-21-2006, 09:58 AM
Again add to the style section on the page (from sample.htm, additions now green):


<style>
all.clsMenuItemNS, .clsMenuItemIE{text-decoration: none; font: bold 12px Arial; color: white; cursor: hand; z-index:100}
#MainTable A:hover {color: yellow;}

#MainTable {
width:90%;
padding-left:20px;
margin-top:-10px!important;
margin-top:0;
}
</style>

The -10px is for FF (to get it to move higher) the 0 for IE (to leave it where it is), adjust as needed. Values can also be positive:


margin-top:5px;

which will push it down the page.