[HTML/CSS] Menu knoppen

Gestart doorAzdin30 reacties86 weergaven

31 berichten · pagina 2 van 3

Berichten
4.367
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Ik heb hem al op me bureaublad, momentjesmile
0
Azdin

Lid · Topicstarter

Berichten
21.633
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Is goed hoor.
0
Berichten
186
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Haal de hight en width: 100% eens weg?

ul#menu li a {
color: black;
border: #000 solid 1px;
background: white;
display: block;
height: 100%; // Weg
width: 100%; // Weg
}
0
Berichten
4.367
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Hoe breed en hoe hoog wil je ze hebben.

toevoeging op 20 maart 2012, 20:22:40:
Helemaal over de breedte?
0
Azdin

Lid · Topicstarter

Berichten
21.633
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Breed (horizontaal) gewoon dat in dat vakje past
Hoogte maakt niet echt uit, als ie maar in dat vakje zit
Nu steekt ie uit

toevoeging op 20 maart 2012, 20:24:23:
Drakonfly schreef:
Haal de hight en width: 100% eens weg?
ul#menu li a {
color: black;
border: #000 solid 1px;
background: white;
display: block;
height: 100%; // Weg
width: 100%; // Weg
}


Geen verschil verandert niets?
0
Berichten
4.367
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Spoiler tonen
body {
    font-family: Arial;
    background-color: #ED2129;
}
#container { 
    margin: 0px auto; 
        padding: 5px;
    width: 990px; 
    height: auto; 
}
#header {
    width: 990px;
    height: 170px;
    background: url(http://azdin.s2.one2xs.com/header.png);
    color: #000000;
    font-size: 48px; 
    font-style: normal; 
    font-weight: bold; 
    text-decoration: none; 
    text-align: center; 
    text-transform: none; 
}
#nav {
        border: 1px solid silver;
        margin-left: 12px;
    width: 150px; 
        float: left;
        background: white url(../images/header.png) repeat-x;
           
        }    
#nav ul {
    list-style: none;
}
#section {
        border: 1px solid silver;
        margin-right: 12px;
    width: 812px; 
    float: right;
        background-color: white;
        background: white url(../images/header.png) repeat-x;
    text-align: center;   
}
ul#menu {
list-style: none;
width: 100px;
padding-top: 35px;
padding-left: 0px; 
}

ul#menu li {
margin-top: none; 
}

ul#menu li a {
color: black;
border: #000 solid 1px;
background: white;
display: block;
height: 25px; /* Hoe hoog je de menu knoppen wilt hebben */
width: 148px; /* Hoe breed je de menu knoppen wilt hebben */
text-align: center;
padding-top: 5px;
}

ul#menu li a:hover {
background: black;
color: white;
border: #000 solid 1px;
display: block;
}
0
Azdin

Lid · Topicstarter

Berichten
21.633
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Hij zit nu al veel beter, zie: http://azdin.s2.one2xs.com/
Alleen, dat vakje met home moet tegen dat zwarte vakje zitten, nu zit er wat witte ruimte tussen?
0
Berichten
4.367
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Dus de hoogte moet minder?
0
Azdin

Lid · Topicstarter

Berichten
21.633
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Ja hij moet gewoon precies tegen dat zwarte vakje
0
Berichten
4.367
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Oke momentje.
0
Azdin

Lid · Topicstarter

Berichten
21.633
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
En hoe komt het dat de tekst in het menu onderstreept is? Kan dat niet weg?
0
Berichten
4.367
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Ja dat kan wel wegsmile
toevoeging op 20 maart 2012, 20:34:20:
Zo een beetje goed?
Spoiler tonen
body {
    font-family: Arial;
    background-color: #ED2129;
}
#container { 
    margin: 0px auto; 
        padding: 5px;
    width: 990px; 
    height: auto; 
}
#header {
    width: 990px;
    height: 170px;
    background: url(http://azdin.s2.one2xs.com/header.png);
    color: #000000;
    font-size: 48px; 
    font-style: normal; 
    font-weight: bold; 
    text-decoration: none; 
    text-align: center; 
    text-transform: none; 
}
#nav {
        border: 1px solid silver;
        margin-left: 12px;
    width: 150px; 
        float: left;
        background: white url(../images/header.png) repeat-x;
           
        }    
#nav ul {
    list-style: none;
}
#section {
        border: 1px solid silver;
        margin-right: 12px;
    width: 812px; 
    float: right;
        background-color: white;
        background: white url(../images/header.png) repeat-x;
    text-align: center;   
}
ul#menu {
list-style: none;
width: 100px;
padding-top: 35px;
padding-left: 0px; 
}

ul#menu li {
margin-top: none; 
text-decoration:none;
}

ul#menu li a {
color: black;
border: #000 solid 1px;
background: white;
display: block;
height: 5px; /* Hoe hoog je de menu knoppen wilt hebben */
width: 148px; /* Hoe breed je de menu knoppen wilt hebben */
text-align: center;
padding-bottom: 10px;
text-decoration:none;
}

ul#menu li a:hover {
background: black;
color: white;
border: #000 solid 1px;
display: block;
text-decoration:none;
}
0
Azdin

Lid · Topicstarter

Berichten
21.633
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Laatste vraag:
http://azdin.s2.one2xs.com/index.html

Zie je onder dat menu (onder contact vakje) nog een wit stukje? Dat moet weg.
0
Berichten
12.729
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
height:100% veranderen in de hoogte van de kopjes.

en om de tekst in het midden te zetten: line-height:aantalpixels;
0
Berichten
15.446
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Drakonfly schreef:
<ul id="menu">
<li><a href="#" class="menu">home</a>
<li><a href="#" class="menu">nieuws</a>
<li><a href="#" class="menu">info</a>
<li><a href="#" class="menu">blaat</a>
</ul>
[bla bla geknipt]

het is misschien ook handiger om alle
  • tags ook te sluiten? Zo voorkom je verdere fouten in je codering smile
    E; quotefix yummie
  • 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