Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [php] [html] Menu z active w php.
bazylnet
post
Post #1





Grupa: Zarejestrowani
Postów: 6
Pomógł: 0
Dołączył: 24.01.2008

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


Witam,

Na stronie w html-u miałem menu z linkami z klasą active (odnośnik do aktualnie wyświetlanej strony był podświetlony).

  1. <style type="text/css">
  2.  
  3. a, a:visited, a:hover, a:active {text-decoration: none; color: #000000;}
  4.  
  5.  
  6. #menu {width:242px; float: left; text-align: left;}
  7. #menu a {padding: 4px 0 4px; margin:0;}
  8.  
  9. .male {width: 239px; min-height: 14px; height: auto; border: 1px solid #DEB887;
  10. padding: 0; margin: 0 auto 2px auto;}
  11. .male a {display:block; width: 100%; height: auto;}
  12. .male a:hover {background-color: #FAEBD7; margin: 0; padding:0; font-weight: bold;}
  13. .male a:active {background-color: red; margin: 0; padding:0; font-weight: bold;}
  14.  
  15.  
  16. </head>
  17.  
  18. <div id="menu">
  19. <div class="male"><a href="index.html">Główna</a></div>
  20. <div class="male"><a href="druga.html">Druga</a></div>
  21. <div class="male"><a href="trzecia.html">Trzecia</a></div>
  22. </div>
  23.  
  24. </body>



Gdy zrobiłem


  1. <?php
  2. <div id="menu">
  3. <div class="male"><a href="index.php">G&#322;ówna</a></div>
  4. <div class="male"><a href="druga.php">Druga</a></div>
  5. <div class="male"><a href="trzecia.php">Trzecia</a></div>
  6. </div>
  7. ?>


i wstawiam je na stronach za pomocą include, active nie działa.

Możecie pomóc?

Dzięki,
P.

Ten post edytował bazylnet 25.01.2008, 00:57:08
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: 20.08.2025 - 11:48