Pomoc - Szukaj - Użytkownicy - Kalendarz
Pełna wersja: [HTML][CSS] Problem z logiem jako odnośnik.
Forum PHP.pl > Forum > Przedszkole
ziperv1
Witam mam taki problem dotyczący powtarzaniu się loga na stronie.
tutaj index.html
  1. </head>
  2.  
  3. <!-- Start: -->
  4. <div id="container">
  5. <div id="bg-menu">
  6. <a href="http://zalukaj.tv/zalukaj-film/11579/zloty_szlak_600_kg_d_or_pur_2010_.html" div id="logo">
  7. </div>
  8. </div>
  9. </div>
  10. <!-- End: -->
  11.  
  12.  
  13. </body>
  14. </html>



a tutaj style.css:
  1. /* Main */
  2. body {
  3. background: url(../images/background.png);
  4. font-family: Arial, Helvetica, sans-serif;
  5. font-size: 13px;
  6. }
  7. /* MENU */
  8. #container {
  9. width:960px;
  10. margin:0 auto;
  11. }
  12.  
  13. #logo {
  14. background: url(../images/logo.png) no-repeat;
  15. height: 129px;
  16. display:run-in;
  17. }
  18.  
  19. #bg-menu {
  20. background: url(../images/bg-menu.png);
  21. background-repeat: no-repeat;
  22. background-position: center;
  23. height: 200px;
  24. }
  25. {
  26. }


a tutaj screen jak to wygląda na stronie : KLIK
xxdrago
Kod
<a href="http://zalukaj.tv/zalukaj-film/11579/zloty_szlak_600_kg_d_or_pur_2010_.html" div id="logo">


Co to jest to div?

Dodaj parametr class.
  1. <a href="http://zalukaj.tv/zalukaj-film/11579/zloty_szlak_600_kg_d_or_pur_2010_.html" class='nazwa'></a>

  1.  
  2. .logo {
  3. background: url(../images/logo.png) no-repeat;
  4. height: 129px;
  5. display:run-in;
  6. }
To jest wersja lo-fi głównej zawartości. Aby zobaczyć pełną wersję z większą zawartością, obrazkami i formatowaniem proszę kliknij tutaj.
Invision Power Board © 2001-2025 Invision Power Services, Inc.