Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [PHP][CSS]Ustawienia stylow CSS. Problem z hover
Mlody993
post
Post #1





Grupa: Zarejestrowani
Postów: 81
Pomógł: 0
Dołączył: 12.02.2009

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


Witam,
robię nowy lay dla stronki no i mam taki styl:

<?php
.menu{
background:url(images/button.jpg);
width:99px;
height:22px;
color:#
> 8F9ABA;
font-size:9px;
text-align:center;
}

a{
color:white;
text-decoration:none;
>
}

.menu a{
color:#8F9ABA;
}
.menu a:hover{
color:yellow;
}

w index.php wyglada to tak:
<td class="menu" ><a href=""><font style="color:#8F9ABA;"><span >H</span>ome</font></a></td> <td width=8></td>

W stylach mam ustawione jako tlo menu plik button.jpg, a chcę, aby po najechaniu myszką było button2.jpg jako tło. No i ustawiam, a to nie reaguje. Co zrobić, aby było poprawnie?

Ten post edytował Mlody993 12.06.2009, 15:20:43
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi
Mlody993
post
Post #2





Grupa: Zarejestrowani
Postów: 81
Pomógł: 0
Dołączył: 12.02.2009

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


Teraz kod css wygląda tak:
Kod
tr,td{
font-family:verdana,arial;
font-size:11px;
color:#8F9ABA;
}
input{



     border: 1px solid #575B72;
    background:#282B3E;
    color:white;
    font-family: verdana,arial;
    font-size: 10px;
}

.menu{
background:url(images/button.jpg);
width:99px;
height:22px;
color:#8F9ABA;
font-size:9px;
text-align:center;
}
.menu:hover {
background:url(images/button2.jpg);
}
.menu a:hover {
background-image: url();
}

a{
color:white;
text-decoration:none;
}

.menu a{
color:#8F9ABA;
}
.menu a:hover{
color:yellow;
}


span{
color:orange;
}
Go to the top of the page
+Quote Post

Posty w temacie


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

 



RSS Aktualny czas: 3.10.2025 - 20:52