|
|||
automatisch breiter menü
Hallo zusammen,
ich hab ein horizontales Menü. In dem Menü steht auch der Name des users. Da jeder User einen anderen Namen hat und somit unterschiedlich groß ist, wollte ich das sich die breite des Menüs sich ja nach länge des namens verbreitert. Geht sowas überhaupt? Also das ist der Code: Code:
<style type="text/css"> .buttonscontaine {width: 260px;} /*BREITE DES MENUE*/ .button a {color: #FFF;/*Textfarbe*/ background-color: #FF4040;/*Hintergrundfarbe des MENUE*/ padding: 2px; padding-left: 3px; border-right:1px solid #FFF; font: 13px Arial, sans-serif; font-weight: bold; text-decoration: none; text-align: left; } .button a:hover {background-color: #F00;/*HINTERGRUND FARBE BEIM DRÜBER GEHEN*/ color: #FFF;/*BREITE DES MENUE*/ text-decoration: none;} </style> Code:
<div class="buttonscx"> <div class="buttx"> <a href="start.dwt.php"><? echo $vorname; echo $name; ?></a> <a href="nachrichteneingang.php">Mails<? if ($RECrows >0 ) {echo " ";echo $RECrows; }?></a> <a href="meine_freunde.php" >Freunde<? if ($neuerfreund >0 ) {echo " ";echo $neuerfreund; }?></a> <a href="meetings.php">Meeting's</a> </div> </div> Freu mich auf einer Antwort. LG |
Sponsored Links |
Themen-Optionen | |
Ansicht | |
|
|
Ähnliche Themen | ||||
Thema | Autor | Forum | Antworten | Letzter Beitrag |
Menü automatisch zentrieren ohne konkrete width? | Forgetta | CSS | 5 | 15.07.2010 13:24 |
Darstellungsproblem | flohpapa | CSS | 3 | 16.12.2009 09:55 |
listenbasierendes menü aktiv breiter als hyperlink | andretti | CSS | 3 | 28.10.2007 13:27 |
Umbruch in einem LI bei horizontalem Menü | M4rco | CSS | 12 | 13.10.2006 12:26 |
Navigation - Menü | T.S. | CSS | 6 | 18.02.2006 19:49 |