Suche im Forum:
Suchen


Autor Nachricht
Beitrag06.09.2007 um 08:45 (UTC)    
Titel: Schrift vom Cool menü mittig setzen

Hallo,

auf meiner Page www.bjunioren74.de.tl ist das Cool menü zu sehen.

Ich finde das die Textposition doof ist, gibt es im Code etwas womit ich die schrift per px oder % verschieben kann, so das sie mittig ist?

Meine code:
Zitat:
<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;
}

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

div.menu
{
position: absolute;
z-index: 3;
top: 188px;
left: 59%;
margin-left:-401px;
width:905px;
}

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

.menu a
{
border: 0px solid #000000;
background-color: #006600;
background-image: url();
text-decoration: none;
text-align: center;
font-weight: bold;
cursor: pointer;
margin: 5px;
display: block;
height: 17px;
color: #ffffff;
}

.menu a:hover
{
background-color: #009900;
background-image: url();
}

#smenu1, #smenu2, #smenu3, #smenu4, #smenu5
{
font-size: 14px;
display: none;
width: 160px;
float: left;
}

#smenu1 a, #smenu2 a, #smenu3 a, #smenu4 a, #smenu5 a
{
font-weight: bold;
padding-top: 5px;
border-top: 0px;
cursor: pointer;
color: #FFFFFF;
}
//-->

</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://bjunioren74.de.tl/Kontakt.htm">Kontakt</a> </li>
<li><a href="http://bjunioren74.de.tl/Hinweise.htm">Hinweise</a></li>
<li><a href="http://bjunioren74.de.tl/Besondere-Auszeichnungen.htm">Auszeichnungen</a></li>
</div>
Beitrag06.09.2007 um 09:51 (UTC)    
Titel:

Im CSS Bereich findest du Stellen mit "padding" ändere die ein bisschen, dann ändert sich auch die Position Wink
______________
LG André

GMMTS.de
Beitrag06.09.2007 um 16:36 (UTC)    
Titel:

hy danke, ich habe mal ein bisschen angepasst^^

danke
Beitrag06.09.2007 um 16:54 (UTC)    
Titel:

jetzt habe ich die schrift halbwegs mittig aber wo und wie bekomme ich sie jetzt etwas höher??

WinkWinkWink
Beitrag06.09.2007 um 17:39 (UTC)    
Titel:

Versuch es mal mit "padding-top" oder "padding-bottom" Wink
Beitrag06.09.2007 um 18:16 (UTC)    
Titel:

Hallo Coolplace,

danke für die Tipps aber keins von beiden geht, ausser padding-top, aber damit habe ich den Button an sich kleiner gemacht und nicht die Schrift höher.

Was kann ich noch machen?
Beiträge der letzten Zeit anzeigen:   


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