Suche im Forum:
Suchen


« Vorheriges Thema anzeigen :: Nächstes Thema anzeigen »  
Autor Nachricht
Beitrag03.06.2007 um 13:39 (UTC)    
Titel: Buttonabstand Coolmenü

hallo,
Hab ne frage zu dem Buttonabstand beim Coolmenü, hier mein Code:

Code:
<style type="text/css" media="screen">
<!--
body
{
font-family: Tahoma;
font-size: 14px;
overflow: auto;
padding: 0px;
margin: 0px;
}

ul, li
{
list-style-type: none;
padding: 0px;
margin: 0px;
}

li a
{
padding-right: 20px;padding-top: 5px;
}

div.menu
{
position: absolute;
z-index: 3;
top: 140px;
left: 25%;
margin-left:-15px;
width:600px;
}

.menu li
{
width: 135px;
float: left;
}

.menu a
{
border: 1px solid #000000;
background-color: #330099;
background-image: url(http://img.webme.com/pic/r/roque-design/roq_button2.jpg);
text-decoration: none;
text-align: center;
font-weight: bold;
cursor: pointer;
margin: 0px 2px;
display: block;
height: 20px;
color: #FFFFFF;
}

.menu a:hover
{
background-color: #000000;
background-image: url(http://img.webme.com/pic/r/roque-design/roq_button1.jpg);
}

#smenu1, #smenu2, #smenu3, #smenu4
{
font-size: 13px;
display: none;
width: 140px;
float: left;
}

#smenu1 a, #smenu2 a, #smenu3 a, #smenu4 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>



<div class="menu">
<li><a href="http://roque-design.de.tl/Hauptseite.htm">
Startseite</a>
</li>

<li><a href="javascript:void(0);" onmouseover="montre('smenu2');" onmouseout="cache('smenu2');">
Community</a>
<ul id="smenu2" onmouseover="montre('smenu2');" onmouseout="cache('smenu2');">

<li><a href="http://www.roque-design.de.tl/G.ae.stebuch.htm">Gästebuch</a></li>
<li><a href="http://roque-design.de.tl/Forum/index.htm">Forum</a></li>
<li><a href="http://roque-design.de.tl/Members.htm">Userstats</a></li>

</ul>
</li>

<li><a href="javascript:void(0);" onmouseover="montre('smenu3');" onmouseout="cache('smenu3');">
Anderes</a>
<ul id="smenu3" onmouseover="montre('smenu3');" onmouseout="cache('smenu3');">

<li><a href="http://www.roque-design.de.tl/Wichtig.htm">Umfragen</a></li>
<li><a href="http://roque-design.de.tl/Links.htm">Links</a></li>
<li><a href="http://roque-design.de.tl/Forum/cat-1-Wie-habt-ihr-das-gemacht-f-.htm">Frage?</a></li>
<li><a href="http://roque-design.de.tl/Forum/thema-1-Design-einschicken.htm">Design einschicken</a></li>
</ul>
</li>

<li><a href="javascript:void(0);" onmouseover="montre('smenu4');" onmouseout="cache('smenu4');">
Info</a>
<ul id="smenu4" onmouseover="montre('smenu4');" onmouseout="cache('smenu4');">

<li><a href="http://roque-design.de.tl/Roque-Roqt.htm">Impressum</a></li>
<li><a href="http://roque-design.de.tl/Banner.htm">Banner Downloaden</a></li>
<li><a href="http://roque-design.de.tl/Forum/thema-1-Wir-suchen-dich-ar-.htm">Helfen</a></li>
</ul>
</li>

</ul>
</li>

</ul>
</li>
</ul>
</div>


Welche dieser Zahlen bestimmt den Abstand der Buttons zueinander?

mfg Roque
______________
RQE' DSIGN Community - Jetzt Online!
Beitrag03.06.2007 um 14:04 (UTC)    
Titel:

Zitat:
.menu a
{
border: 1px solid #000000;
background-color: #330099;
background-image: url(http://img.webme.com/pic/r/roque-design/roq_button2.jpg);
text-decoration: none;
text-align: center;
font-weight: bold;
cursor: pointer;
margin: 0px 2px;
display: block;
height: 20px;
color: #FFFFFF;
}


Probier mal den rotmarkierten Wert zu ändern.
Beitrag03.06.2007 um 15:11 (UTC)    
Titel:

danke hat geklappt...
______________
RQE' DSIGN Community - Jetzt Online!
Beiträge der letzten Zeit anzeigen:   


Powered by phpBB © 2001, 2005 phpBB Group
Deutsche Übersetzung von phpBB.de