Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

 
Reply to this topicStart new topic
> [ccs]text decoration:none -problem
Smirnoff
post 1.10.2009, 21:59:09
Post #1





Grupa: Zarejestrowani
Postów: 5
Pomógł: 0
Dołączył: 25.09.2009

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


Witam, mam taki problem, dlaczego text-decoration:none nie działa?

  1. .klasa a{
  2. color:#00CCFF;
  3. text-decoration:none;
  4. }
  5. .klasa a:hover{
  6. color:#111111;
  7. text-decoration:none;
  8. }



ustawiania kolorow dzialaja wiec z klasami wszystko ok...
Go to the top of the page
+Quote Post
wookieb
post 1.10.2009, 22:25:30
Post #2





Grupa: Moderatorzy
Postów: 8 989
Pomógł: 1550
Dołączył: 8.08.2008
Skąd: Słupsk/Gdańsk




Bo nie pokazałeś nam linka do strony, na której to sie dzieje?


--------------------
Go to the top of the page
+Quote Post
paw-e-l
post 1.10.2009, 23:27:17
Post #3





Grupa: Zarejestrowani
Postów: 115
Pomógł: 23
Dołączył: 27.06.2009
Skąd: Jaworzno

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


prawdopodobnie text-decoration jest nadpisywane przez inną klasę. sprawdź element firebugiem.
Go to the top of the page
+Quote Post
Smirnoff
post 2.10.2009, 19:53:24
Post #4





Grupa: Zarejestrowani
Postów: 5
Pomógł: 0
Dołączył: 25.09.2009

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


oto mój cąły plik style.ccs
wiem ze panuje w nim niezły chaos ale niestety nie bardzo wiem co oznacza nadpisywanie przez inna klase
w css dopiero stawiam pierwsze kroki...

edit: a i dodam ze tex-decoration:none moze sie bez problemu odnosic do całej storny, nie musi byc tylko w tej klasie...

  1. @charset "iso-8859-2";
  2. /* CSS Document */
  3. body{
  4. background:#022732;
  5. padding:0px;
  6. margin:0px;
  7. }
  8. div,td{
  9. font-family:Verdana, Arial, Helvetica, sans-serif;
  10. font-size:10px;
  11.  
  12. }
  13. .pds{
  14. width:790px;
  15. margin:auto;
  16. position:relative;
  17. }
  18. .sr{
  19. background:url(images/tlo.gif);
  20. padding-left:20px;
  21. }
  22.  
  23. .ng1{
  24. background:url(images/m_top.gif);
  25. padding:10px 2px 18px 2px;
  26. text-align:center;
  27. color:#fff;
  28. font-weight:bold;
  29. }
  30. .mtxt1{
  31. background:url(images/m_tlo.gif);
  32. padding: 2px 7px 2px 7px;
  33. }
  34.  
  35. .klasa{
  36. background:url(images/m_tlo.gif);
  37. padding: 2px 7px 2px 7px;
  38. }
  39.  
  40. .klasa a:hover{
  41. text-decoration: none;
  42. color:#828384;
  43.  
  44. }
  45. .klasa a{
  46. text-decoration:none;
  47. color:#828384;
  48.  
  49. }
  50.  
  51. .mtxt2{
  52. background:url(images/m_tlo.gif);
  53. padding: 2px 7px 2px -3px;
  54. }
  55.  
  56.  
  57. .menu{
  58. list-style: none;
  59. margin:0px;
  60. margin-left:1px;
  61. padding:0px;
  62. }
  63. .menu li a{
  64. display:block;
  65. width:134px;
  66. padding:3px 0px 3px 9px;
  67. background-color:#8A8A8A;
  68. border-bottom:1px solid #828384;
  69. color:#000;
  70. font-size:10px;
  71.  
  72. text-decoration:none;
  73. }
  74. .menu li a:hover{
  75. background-color:#2C2E30;
  76. border-bottom:1px solid #828384;
  77. color:#fff;
  78. text-decoration:none;
  79. font-size:10px;
  80.  
  81. }
  82.  
  83. .srodek a{
  84. color:#009999;
  85. text-decoration:none;
  86. }
  87.  
  88.  
  89. .srodek2 a{
  90. color:#009999;
  91. text-decoration:none;
  92. }
  93.  
  94.  
  95.  
  96. .srodek{
  97. padding: 2px 10px 2px 10px;
  98. }
  99. .srodek2{
  100. padding: 2px 10px 2px 10px;
  101. }
  102. a{
  103. text-decoration: none;
  104. color:#00CCFF;
  105. }


Ten post edytował Ociu 2.10.2009, 20:05:07
Go to the top of the page
+Quote Post
Ociu
post 2.10.2009, 20:06:02
Post #5





Grupa: Moderatorzy
Postów: 1 566
Pomógł: 37
Dołączył: 14.05.2003
Skąd: Kraków




Smirnoff, proszę abyś zaczął używać bbCode. Na razie posty poprawiłem, następne posty bez odpowiedniego formatowania kodu spowodują zamknięcie tematu.
Go to the top of the page
+Quote Post
paw-e-l
post 2.10.2009, 22:16:22
Post #6





Grupa: Zarejestrowani
Postów: 115
Pomógł: 23
Dołączył: 27.06.2009
Skąd: Jaworzno

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


przydał by się też fragment kodu html w którym zawiera się przykładowy odnośnik który chcesz ostylować.
Go to the top of the page
+Quote Post

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 Wersja Lo-Fi Aktualny czas: 4.05.2025 - 06:12