Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

 
Reply to this topicStart new topic
> [CSS][xHTML]Button w a:visited gubi rozmiar.
Rewil
post
Post #1





Grupa: Zarejestrowani
Postów: 175
Pomógł: 0
Dołączył: 19.09.2009

Ostrzeżenie: (10%)
X----


www.olimat.pl/beta/
www.olimat.pl/beta/stylstrona.css

Chodzi o to iż, po kliknięciu w buttona i powrocie do strony button zmienia swój podstawowy kształt, pomimo tego iż powinien zachować się identycznie jak w hover'. Ktoś wie jak nad tym zapanować?


  1. #panel{
  2. position:absolute;
  3. top: 390px;
  4. margin-left:300px;
  5. width: 660px;
  6. }
  7.  
  8. #panel ul, ul li {
  9. display: block;
  10. list-style: none;
  11. margin: 0;
  12. padding: 0;
  13. }
  14.  
  15. #panel ul {
  16. float: left;
  17. }
  18.  
  19. #panel ul li {
  20. float: left;
  21. }
  22.  
  23. #panel ul a:link {
  24. text-decoration: none;
  25. font-family:Tahoma;
  26. font-size: 16px;
  27. color: #ededed;
  28. display: block;
  29. background: url('images/btn_1.png') no-repeat;
  30. background-position: 0px -11px;
  31. text-align:center;
  32. padding-top: 5px;
  33. height:48px;
  34. width: 165px;
  35. }
  36.  
  37. #panel ul a:visited {
  38. font-family:Tahoma;
  39. font-size: 16px;
  40. color: #ededed;
  41. background: url('images/btn_1.png') no-repeat;
  42. background-position: 0px -11px;
  43. text-align:center;
  44. padding-top: 5px;
  45. height:48px;
  46. width: 165px;
  47. }
  48.  
  49. #panel ul a:hover{
  50. height:48px;
  51. width: 165px;
  52. background: url('images/btn_2.png') no-repeat center;
  53. padding-top: 5px;
  54. background-position: 0px -11px;
  55. text-align:center;
  56.  
  57. }
Go to the top of the page
+Quote Post
b4x
post
Post #2





Grupa: Zarejestrowani
Postów: 658
Pomógł: 95
Dołączył: 20.12.2005
Skąd: N54,35° E18,63° (Gdańsk)

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


Zmień:

  1. #panel ul a:link {
  2. text-decoration: none;
  3. font-family:Tahoma;
  4. font-size: 16px;
  5. color: #ededed;
  6. display: block;
  7. background: url('images/btn_1.png') no-repeat;
  8. background-position: 0px -11px;
  9. text-align:center;
  10. padding-top: 5px;
  11. height:48px;
  12. width: 165px;
  13. }


na

  1. #panel ul a {
  2. text-decoration: none;
  3. font-family:Tahoma;
  4. font-size: 16px;
  5. color: #ededed;
  6. display: block;
  7. background: url('images/btn_1.png') no-repeat;
  8. background-position: 0px -11px;
  9. text-align:center;
  10. padding-top: 5px;
  11. height:48px;
  12. width: 165px;
  13. }


--------------------
Go to the top of the page
+Quote Post
Rewil
post
Post #3





Grupa: Zarejestrowani
Postów: 175
Pomógł: 0
Dołączył: 19.09.2009

Ostrzeżenie: (10%)
X----


Poprawiło się, ale dalej przeskakuje w lewo. Hmm...
Go to the top of the page
+Quote Post
b4x
post
Post #4





Grupa: Zarejestrowani
Postów: 658
Pomógł: 95
Dołączył: 20.12.2005
Skąd: N54,35° E18,63° (Gdańsk)

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


Wywal wgl. #panel ul a:visited


--------------------
Go to the top of the page
+Quote Post
Rewil
post
Post #5





Grupa: Zarejestrowani
Postów: 175
Pomógł: 0
Dołączył: 19.09.2009

Ostrzeżenie: (10%)
X----


Wywalony jest.
Go to the top of the page
+Quote Post
b4x
post
Post #6





Grupa: Zarejestrowani
Postów: 658
Pomógł: 95
Dołączył: 20.12.2005
Skąd: N54,35° E18,63° (Gdańsk)

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


#mapa_strony ul a:link, ul a:visited

zmień na

#mapa_strony ul a:link, #mapa_strony ul a:visited


--------------------
Go to the top of the page
+Quote Post
Rewil
post
Post #7





Grupa: Zarejestrowani
Postów: 175
Pomógł: 0
Dołączył: 19.09.2009

Ostrzeżenie: (10%)
X----


Dzięki w życiu nie pomyślał bym że to ma ze sobą jakiś związek. Jeszcze raz bardzo dziękuje.
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 Aktualny czas: 21.08.2025 - 08:43