Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [CSS] wyrównanie menu do lewej strony
-steve-
post 28.07.2013, 10:00:10
Post #1





Goście







Witajcie. Posiadam pewien problem, a chodzi mi o to, że stosuje w css forme display inline oraz float left lecz menu dalej ma jakby margines. Adres strony to www.advertgame.pl

Szukałem, zmieniałem w css bo być może gdzieś indziej coś jest pomieszane i nic nie zauważyłem.
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi (1 - 4)
-Gość-
post 28.07.2013, 10:27:22
Post #2





Goście







#menu, ul, li{
padding-left: 0;
}
Go to the top of the page
+Quote Post
-steve-
post 28.07.2013, 11:58:17
Post #3





Goście







Niestety nie działa, podam poniżej kod mojego menu może coś źle zrobiłem w nim.

Kod
#menu ul,li {
    padding-left: 0;
}

a.menu1 {
background: url(images/menu1.png) no-repeat;
height:25px;
width:162px;
display: inline-block;
}

a.menu1:hover {
background-position: 0px -22px;
}

a.menu2 {
background: url(images/menu2.png) no-repeat;
height:25px;
overflow:hidden;
width:121px;
display: inline-block;
}

a.menu2:hover {
background-position: 0px -23px;
}

a.menu3 {
background: url(images/menu3.png) no-repeat;
height:25px;
overflow:hidden;
width:75px;
display: inline-block;
}

a.menu3:hover {
background-position: 0px -23px;
}

a.menu4 {
background: url(images/menu4.png) no-repeat;
height:25px;
overflow:hidden;
width:110px;
display: inline-block;
}

a.menu4:hover {
background-position: 0px -23px;
}

a.menu5 {
background: url(images/menu5.png) no-repeat;
height:25px;
overflow:hidden;
width:52px;
display: inline-block;
}

a.menu5:hover {
background-position: 0px -23px;
}

a.menu6 {
background: url(images/menu6.png) no-repeat;
height:25px;
overflow:hidden;
width:90px;
display: inline-block;
}

a.menu6:hover {
background-position: 0px -23px;
}

a.menu7 {
background: url(images/menu7.png) no-repeat;
height:25px;
overflow:hidden;
width:98px;
display: inline-block;
}

a.menu7:hover {
background-position: 0px -23px;
}

a.menu8 {
background: url(images/menu8.png) no-repeat;
height:24px;
overflow:hidden;
width:78px;
display: inline-block;
}

a.menu8:hover {
background-position: 0px -24px;
}
Go to the top of the page
+Quote Post
-steve-
post 28.07.2013, 11:59:37
Post #4





Goście







Jak dodaje padding-left: 0; to robi mi się pionowe menu.
Go to the top of the page
+Quote Post
-steve-
post 28.07.2013, 12:08:50
Post #5





Goście







Już sobie poradziłem, można temat zamknąć.
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
1 Użytkowników czyta ten temat (1 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Wersja Lo-Fi Aktualny czas: 14.08.2025 - 04:21