Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [html/css] "Niezaznaczalność" obrazka
koboos
post
Post #1





Grupa: Zarejestrowani
Postów: 15
Pomógł: 0
Dołączył: 30.03.2010

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


Witam.
Posiadam część jednego div'a pod drugim. W tym z przodu jest obrazek z częścią przezroczystą, która nachodzi na div pod spodem, w którym jest tekst.
Problem polega na tym, że gdy chcę zaznaczyć ten tekst lub najechać na hiperłącze zaznacza mi się ten obrazek albo hiperłącze się nie podświetla.
Własnie wpadłem na pomysł, żeby dać tło div'a zamiast tego obrazka, ale na obrazku mam mapę linków i wolałbym ją sobie zostawić.

Czy jest jakiś inny sposób na to aby ten obrazek się nie zaznaczał, będąc przed tekstem?

Ten post edytował koboos 16.04.2010, 20:06:40
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi
koboos
post
Post #2





Grupa: Zarejestrowani
Postów: 15
Pomógł: 0
Dołączył: 30.03.2010

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


  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  4. <title>Dokument bez tytułu</title>
  5. <link href="layout.css" rel="stylesheet" type="text/css" />
  6. </head>
  7.  
  8. <div id="wrapper">
  9. <!-- UpHead -->
  10. <div id="uphead"></div>
  11.  
  12. <!-- Content -->
  13. <div id="content">
  14.  
  15. <!-- Left -->
  16. <div id="left">
  17. <img src="img/card_1_alt.png" usemap="#map" border="0">
  18. <map name="map">
  19. <area shape="poly" coords="37,226,271,148,287,197,53,276" href="index.html">
  20. <area shape="poly" coords="290,155,302,185,439,139,431,122,407,130,402,116" href="kontakt.html">
  21. </map>
  22. </div>
  23.  
  24. <!-- Right -->
  25. <div id="right">
  26. <div id="menu">
  27. <ul>
  28. <li><a href="firma.html" class="active">firma</a></li>
  29. <li><a href="uslugi.html">usługi</a></li>
  30. <li><a href="adres.html">adres</a></li>
  31. <li><a href="kontakt.html">kontakt</a></li>
  32. </ul>
  33. </div>
  34. <div id="box">
  35. <div id="box_top"></div>
  36. <div id="box_middle">
  37. <div id="box_right">
  38. <div id="box_center">
  39. <div id="box_content"><p><a href="">link link link</a></p></div>
  40. </div>
  41. </div>
  42. </div>
  43. <div id="box_bottom"></div>
  44. </div>
  45. </div>
  46. </div>
  47.  
  48. <!-- Footer -->
  49. <div id="footer"></div>
  50. </div>
  51. </body>
  52. </html>

  1. @charset "utf-8";
  2. /* CSS Document */
  3. body { background: url(img/background.png) repeat; line-height:16px; font-size:13px; font-family:Verdana; color:#FFF;}
  4. body a { color:#fff; text-decoration:underline;}
  5. body a:hover { color:#363b3b;}
  6. #wrapper { width:780px; margin:0 auto;}
  7. #uphead { float:left; width:780px; height:0px;}
  8. #content { float:left; width:780px;}
  9. #footer { float:left; width: 780px; height:0px;}
  10.  
  11. #left { width:493px; height:380px; position:absolute;}
  12. #right { float:right; width:439px; min-height:513px;}
  13.  
  14. /* MENU */
  15. #menu { float:right; width:268px; height:31px; margin: 225px 22px 0 0;}
  16. #menu ul{ width:268px; margin:0 auto; list-style:none; padding:0; text-align:center;}
  17. #menu ul li{ display:inline}
  18. #menu ul a { display:block; float:left; background:url(img/buttons.png) -7px 3px no-repeat; width:67px; height:31px; padding-top:3px;
  19. line-height:43px; font-size:12px; text-align:center; text-decoration:none; color:#363b3b;}
  20. #menu ul a:hover { background:url(img/buttons.png) -7px -31px no-repeat; color:#d7d7d7;}
  21. #menu ul a.active { background:url(img/buttons.png) -7px -65px no-repeat; color:#fff; font-weight:bold;}
  22. #menu ul a.active:hover { background:url(img/buttons.png) -7px -65px no-repeat; color:#fff;}
  23. /* MENU */
  24.  
  25. #box { margin-top:230px; right:0px; width:439px; min-height: 260px;}
  26. #box_top { height:38px; background: url(img/card_2_belts.png);}
  27. #box_middle { min-height:230px; background:url(img/card_2_left.png) repeat-y;}
  28. #box_bottom { height:18px; background: url(img/card_2_belts.png) 0px -38px;}
  29.  
  30. #box_right { width:100%; min-height:230px; background: url(img/card_2_right.png) right repeat-y;}
  31. #box_center { overflow:hidden; margin-left:7px; min-height:230px; width:422px; background:#76a901 url(img/card_2_bg.png) repeat-x;}
  32. #box_content { margin:3px 22px 8px 22px;}
  33.  
  34. p { margin:0px; }
  35. p.title { font-weight:bold; }
  36. p.underline { text-decoration:underline;}
  37. p ul, li { list-style:disc outside;}
  38. p.footer { font-size:9px; color:#8dca03; padding-left:160px;}
  39. p.footer a { text-decoration:none; font-weight:bold; color:#8dca03;}
  40. p.seemap { font-style:italic; text-decoration:underline; margin-top:5px;}
  41.  
  42. .contact_left { float:left; width:35%; }
  43. .contact_right { float:left; width:65%; }
  44. .contact_left_mail { float:left; width:30%; padding-left:5%;}
  45. .contact_button { float:right; }
  46.  
  47. #adress_left {float:left; width:50%; margin-left:5%;}
  48. #adress_right {float:left; width:45%;}
  49.  
  50. input.text { border: 1px solid #646262; background:#fff; color:#646262; width:100%; font-family:Verdana; font-size:12px;}
  51. input.text:focus { border: 1px solid #646262; background:#e8e8e8;}
  52. textarea.area { border: 1px solid #646262; background:#fff; color:#646262; width:100%; font-family:Verdana; font-size:12px;}
  53. textarea.area:focus { border: 1px solid #646262; background:#e8e8e8;}


Ten post edytował koboos 16.04.2010, 20:47:30
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: 14.10.2025 - 21:59