Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

 
Reply to this topicStart new topic
> [HTML][CSS]Obrazki w menu
Raven1122
post
Post #1





Grupa: Zarejestrowani
Postów: 369
Pomógł: 2
Dołączył: 1.11.2010

Ostrzeżenie: (0%)
-----


Witam, mam taki problem. Próbuje napisy w menu zrobić w formie obrazków, i jak już je wstawiłem, i dopisałem w menu
  1. <a class="home" href="..."></a>


Dlaczego wtedy obrazek zdefiniowany klasą "home" się nie wyświetla? Zauważyłem, że po dodaniu treści pomiędzy
  1. <a class="home" href="...">Tutaj</a>
, wtedy mały kawałek tego obrazka się pojawia.

Kod Css:
.home {
background: url(../images/home.png)no-repeat;
width:94px;
height:24px;
}

.home:hover {
background: url(../images/homehover.png)no-repeat;
width:106px;
height:33px;
}

Proszę o pomoc
Go to the top of the page
+Quote Post
lobopol
post
Post #2





Grupa: Zarejestrowani
Postów: 1 729
Pomógł: 346
Dołączył: 4.04.2009

Ostrzeżenie: (0%)
-----


Znacznik a jest elementem liniowym, możesz mu dać np. display:inline-block to będzie ci się wyświetlać.


--------------------
Go to the top of the page
+Quote Post
Raven1122
post
Post #3





Grupa: Zarejestrowani
Postów: 369
Pomógł: 2
Dołączył: 1.11.2010

Ostrzeżenie: (0%)
-----


dziekuje bardzo pomoglo smile.gif daje pomogl

Ten post edytował Raven1122 9.08.2011, 09:32:54
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 Aktualny czas: 21.08.2025 - 19:42