horizontaal menu

Gestart doorFreestyle2 reacties12 weergaven

3 berichten · pagina 1 van 1

Freestyle

Lid · Topicstarter

Berichten
7.681
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Ik heb een horizontaal menu. Maar de menu items (plaatjes). Staan er niet volledig op. Hij negeert ook de width en de height. Hoe los ik dit op?

Html:

<ul>
                <li><a href="">Dashboard</a></li>
                <li><a href="">Gebruikers</a></li>
                <li><a href="">Paginas</a></li>
                <li><a href="">Settings</a></li>
</ul>


Css:

#menu ul {list-style:none;}
#menu ul li {font-family:Franklin Gothic Demi; font-size:16px; display:inline; margin-left:20px;}
#menu ul li a {background:url(images/button.png); text-decoration:none; color:#333; width:120px; height:37px;}
#menu ul li a:hover {background:url(images/buttonClicked.png); text-decoration:none; width:120px; height:37px;}


Ik wil dus dat elk blokje (
  • ) 120px breedt zijn en 37px hoog.
    0
    Berichten
    15.446
    Reputatie
    0
    Punten
    0,00
    Lid sinds
    Laatst gezien
    display: inline-block; erbij zetten?
    0
    Freestyle

    Lid · Topicstarter

    Berichten
    7.681
    Reputatie
    0
    Punten
    0,00
    Lid sinds
    Laatst gezien
    Bedankt het word zo:

    #menu ul li {font-family:Franklin Gothic Demi; font-size:16px; display:inline-block; margin-left:20px;}
    #menu ul li a {background:url(images/button.png); text-decoration:none; color:#333; display:block; width:120px; height:37px;}
    #menu ul li a:hover {background:url(images/buttonClicked.png); text-decoration:none; width:120px; height:37px;}


    Je moet bij die a ook display:block; zetten.
    0

    Jouw reactie

    Deel je idee, stel een vraag of help een ander verder.

    Editor laden…

    Praat mee met de One2xs-community.

    Inloggen om te reageren