Guest User

pozicionalasi hiba

a guest
Nov 23rd, 2012
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 2.68 KB | None | 0 0
  1. CSS:
  2. html, body, div#wrap1, div#wrap2, div#wrap3 {
  3. height:100%;
  4. width:100%;
  5. }
  6.  
  7. body {
  8. background:#222222;
  9. overflow:auto;
  10. background-image:url('2.gif');
  11. }
  12.  
  13. div#wrap2 {
  14. background: url('1.gif') repeat-x 0 300px;
  15. }
  16.  
  17. div#wrap1 {
  18. background: url('3.gif') repeat-x left top;
  19. }
  20.  
  21. h1 {
  22. font-size:200px;
  23. font-family:'Zekton.Free';
  24. color:#222222;
  25. z-index:2;
  26. }
  27.  
  28. div#stuff1 {
  29. width:1000px;
  30. height:192px;
  31. overflow:hidden;
  32. margin:0 auto 0 auto;
  33. text-align:center;
  34. position: relative;
  35. top:130px;
  36. }
  37.  
  38. div#stuff2 {
  39. width:1000px;
  40. height:250px;
  41. overflow:hidden;
  42. margin:0 auto 0 auto;
  43. text-align:center;
  44. position: relative;
  45. top:140px;
  46. }
  47.  
  48. div#stuff1 div {
  49. height:190px;
  50. position:relative;
  51. overflow:hidden;
  52. z-index:2;
  53. }
  54.  
  55. div#stuff1 h1 {
  56. margin:15px 0 0 0;
  57. }
  58.  
  59. div#stuff2 div {
  60. height:70px;
  61. position:relative;
  62. overflow:hidden;
  63. z-index:2;
  64. }
  65.  
  66. div#stuff2 h1 {
  67. margin:-180px 0 0 0;
  68. }
  69.  
  70. * {
  71. margin:0;
  72. padding:0;
  73. }
  74.  
  75. a.ss {
  76. z-index:9999;
  77. background-image:url('5.png');
  78. width:21px;
  79. height:30px;
  80. position:absolute;
  81. top:1px;
  82. }
  83.  
  84. div#image2 {
  85. position:absolute;
  86. right:0;
  87. bottom:0;
  88. background-image: url('4.gif');
  89. width:98px;
  90. height:98px;
  91. visibility:hidden;
  92. z-index:50;
  93. }
  94.  
  95. HTML:
  96. <div style="background-position: 0pt 180.011px;" id="wrap1">
  97. <div style="background-position: 0pt 440.005px;" id="wrap2">
  98. <div id="wrap3">
  99. <div id="stuff1">
  100. <div style="z-index: 43;"><h1>szoveg</h1></div>
  101. <div style="top: -190px; left: -1px;"><h1 style="color:#20E1F8;">szoveg</h1></div>
  102. <div style="top: -380px; left: 1px;"><h1 style="color:#20E1F8;">szoveg</h1></div>
  103. <div style="top: -571px;"><h1 style="color:#20E1F8;">szoveg</h1></div>
  104. <div style="top: -759px;"><h1 style="color:#20E1F8;">szoveg</h1></div>
  105. </div>
  106. <div style="visibility: visible; opacity: 0.39; bottom: 159.995px; right: 145px;" id="image2"></div>
  107. <div id="stuff2">
  108. <div style="margin: 1px 0pt 0pt; z-index: 43; color:#FF0000;"><h1>szoveg</h1></div>
  109. <div style="top: -70px; left: -1px;"><h1 style="color:#20E1F8;" id="z">szoveg</h1></div>
  110. <div style="top: -140px; left: 1px;"><h1 style="color:#20E1F8;">szoveg</h1></div>
  111. <div style="top: -211px;"><h1 style="color:#20E1F8;">szoveg</h1></div>
  112. <div style="top: -279px;"><h1 style="color:#20E1F8;">szoveg</h1></div>
  113. <a style="background-position: 0pt 9.9947px; opacity: 1; left:435px;" href="1" id="link1" class="ss"></a>
  114. <a style="background-position: 0pt 27.9947px; opacity: 1; left:519px;" href="2" id="link2" class="ss"></a>
  115. <a style="background-position: 0pt 48.9947px; opacity: 1; left:876px;" href="3" id="link3" class="ss"></a>
  116. <a style="background-position: 0pt 66.9947px; opacity: 1; left:936px;" href="4" id="link4" class="ss"></a>
  117. </div>
  118. </div>
  119. </div>
  120. </div>
Advertisement
Add Comment
Please, Sign In to add comment