Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [CSS]Taby jak zrobić, aby się nie przesuwały
Maze123987
post
Post #1





Grupa: Zarejestrowani
Postów: 98
Pomógł: 0
Dołączył: 17.09.2009

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


Witam, mam na stronie ten skrypt http://mehdi.biz/blog/2010/02/05/vertical-...-jquery-lovers/
niestety okienko przesuwa się w zależności od tego, który tab jest aktywny. Jak zrobić, aby cały czas był "w miejscu".?
Tutaj można zobaczyć jak to wygląda
LINK
CSS:
  1. #vtab {
  2. margin: auto;
  3. width: 750px;
  4. margin-left: 50px;
  5. height: 100%;
  6. }
  7. #vtab > ul > li {
  8. width: 100px;
  9. height: 50px;
  10.  
  11. background-color: #fff !important;
  12. list-style-type: none;
  13. display: block;
  14. text-align: left;
  15. margin-left: -50px;
  16. margin-top: -10px;
  17. border: 1px solid ;
  18. padding-bottom: 0px;
  19.  
  20. position: relative;
  21.  
  22. opacity: .3;
  23. -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=30)";
  24. filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=30);
  25. }
  26. #vtab > ul > li.home {
  27. background: url('home.png') no-repeat center center;
  28. }
  29. #vtab > ul > li.login {
  30. background: url('login.png') no-repeat center center;
  31. }
  32. #vtab > ul > li.support {
  33. background: url('support.png') no-repeat center center;
  34. }
  35. #vtab > ul > li.selected {
  36. opacity: 1;
  37. -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=100)";
  38. filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=100);
  39. border: 1px solid #ddd;
  40. border-right: none;
  41. margin-left: -50px;
  42. z-index: 0;
  43. background-color: #fafafa !important;
  44. position: relative;
  45. }
  46. #vtab > ul {
  47. float: left;
  48. width: 100px;
  49. text-align: left;
  50.  
  51. margin-left: -50px;
  52.  
  53. display: block;
  54. margin: auto 0 0 0;
  55. padding: 0;
  56. position: relative;
  57. top: 120px;
  58. }
  59. #vtab > div {
  60. background-color: #fafafa;
  61. margin-left: 50px;
  62. border: 1px solid #ddd;
  63. min-height: 600px;
  64. padding: 12px;
  65. position: relative;
  66. z-index: 9;
  67. -moz-border-radius: 20px;
  68. }
  69. #vtab > div > h4 {
  70. color: #800;
  71. font-size: 1.2em;
  72. border-bottom: 1px dotted #800;
  73. padding-top: 5px;
  74. margin-top: 0;
  75. }
  76. #loginForm label {
  77. float: left;
  78. width: 100px;
  79. text-align: right;
  80. clear: left;
  81. margin-right: 15px;
  82. }
  83. #loginForm fieldset {
  84. border: none;
  85. }
  86. #loginForm fieldset > div {
  87. padding-top: 3px;
  88. padding-bottom: 3px;
  89. }
  90. #loginForm #login {
  91. margin-left: 115px;
  92. }


bump

bump

no to bump biggrin.gif
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: 22.08.2025 - 11:03