Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [css][html] Div jako odnośnik, a poprawność i obsługa przez przeglądarki
Azer
post
Post #1





Grupa: Zablokowani
Postów: 5
Pomógł: 0
Dołączył: 4.05.2008

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


Chciałbym ażeby div był odnośnikiem url, lecz po dodaniu: <a><div></div></a>, validator wskazuje na niepoprawność a i Internet Explorer nie obsługuje tego tak jak trzeba
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi
Crozin
post
Post #2





Grupa: Zarejestrowani
Postów: 6 476
Pomógł: 1306
Dołączył: 6.08.2006
Skąd: Kraków

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


@MWL a dostępność idzie się.... (IMG:http://forum.php.pl/style_emoticons/default/winksmiley.jpg)
  1. <div><a href="...">Kliknij mnie</a></div>
Kod
div{
  width: 400px;
  height: 100px;
}

a{
  display: block;
  width: 100%;
  height: 100%;
}
Go to the top of the page
+Quote Post

Posty w temacie


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: 6.10.2025 - 19:35