lila_lallo
Gesperrt Threadersteller
Dabei seit: 02.10.2007
Ort: Würzburg
Alter: 34
Geschlecht:
|
Verfasst Di 12.08.2008 16:49
Titel JavaScript: Anordnung der Schrift in Navibuttons |
|
|
^^ Meine Menüpunkte sind nicht genau in der mitte, sondern zu hoch!
Sie sollen in die Mitte!
Hier mein Code:
<style type="text/css" media="screen">
<!--
body
{
font-family: Verdana, sans-serif;
font-size: 14px;
overflow: auto;
padding: 10px;
margin: 0px;
}
ul, li
{
list-style-type: none;
padding: 0px;
margin: 0px;
}
.menu
{
position: absolute;
z-index: 3;
top: 125px;
}
.menu li
{
width: 180px;
float: left;
}
.menu a
{
border: 3px solid #3566CD;
background-color: #3566CD;
text-decoration: none;
text-align: center;
font-weight: bold;
cursor: pointer;
margin: 0px 10px;
display: block;
height: 30px;
color: #FFFFFF;
}
.menu a:hover
{
background-color: #FFFFFF;
border: 3px solid #3566CD;
text-decoration: none;
text-align: center;
font-weight: bold;
cursor: pointer;
margin: 0px 10px;
display: block;
height: 30px;
color: #3566CD;
}
#smenu1, #smenu2, #smenu3, #smenu4, #smenu5
{
font-size: 12px;
display: none;
width: 140px;
float: left;
}
#smenu1 a, #smenu2 a, #smenu3 a, #smenu4 a, #smenu5 a
{
font-weight: normal;
padding-top: 2px;
border-top: 0px;
cursor: pointer;
}
//-->
</style>
<script type="text/javascript">
<!--
function montre(id)
{
with (document)
{
if (getElementById)
getElementById(id).style.display = 'block';
else if (all)
all[id].style.display = 'block';
else
layers[id].display = 'block';
}
}
function cache(id)
{
with (document)
{
if (getElementById)
getElementById(id).style.display = 'none';
else if (all)
all[id].style.display = 'none';
else
layers[id].display = 'none';
}
}
//-->
</script>
|
|