Witam mam mały problem z rozwijalnym menu. Otóż wygląda to następująco.
oto stronka www.adriano941.nstrefa.pl
jak widać menu nie działa poprawnie, głównie chodzi o wyświetlanie.
Tak jak mam dwa poziomy poziom główny i podpoziom. Chodzi o to aby podpoziom, np. w poziomie "Oferty" wyświetlał się pod "Oferty" a to co jest niżej "galeria" i "kontakt" samo przesuwało się niżej. Nie wiem jak to zrobić... Kto pomoże?
oto kod css

  1. body,html {
  2. margin: 0;
  3. padding: 0;
  4. width:100%;
  5. height:100%;
  6. text-align:center;
  7. background:#fff;
  8. background:0 0 repeat url('../images/content_bkg.png'); }
  9. body,html,table {
  10. font-size:15px;
  11. font-family:"Times New Roman",sans-serif;
  12. line-height:150%;
  13. color: #666666; }
  14.  
  15. h1,h2,h3,h4,h5,h6 {
  16. color:#494f5f;
  17. margin: 0;
  18. padding: 10px 0 20px 0; }
  19. h1 {
  20. font-size:36px; }
  21. h2 {
  22. font-size:36px; }
  23. h3 {
  24. font-size:24px; }
  25. h4 {
  26. font-size:20px; }
  27. h5 {
  28. font-size:18px; }
  29. h6 {
  30. font-size:14px; }
  31. h7 {
  32. font-size:20px;
  33. font-weight: bold;
  34. color: black; }
  35. h8 {
  36. font-size:14px;
  37. color: black; }
  38. h9 {
  39. font-family: "Verdana";
  40. font-size:15px;
  41. color: black; }
  42. p {
  43. margin: 0;
  44. padding: 5px 0 5px 0; }
  45. a {
  46. color:#7fb725;
  47. text-decoration: none; }
  48. a span {
  49. cursor:pointer; }
  50. a:hover {
  51. color:#494f5f;
  52. text-decoration: underline; }
  53.  
  54. table {
  55. clear:both;
  56. width:100%;
  57. border-collapse:separate;
  58. margin:10px 0; }
  59. th {
  60. font-weight:bold;
  61. font-family:Arial,sans-serif;
  62. color:#7fb725;
  63. border:0;
  64. background:transparent;
  65. padding: 10px 10px;
  66. text-align:center; }
  67. th.first {
  68. font-size:24px;
  69. color:#494f5f; }
  70. td {
  71. border:1px solid #7fb725;
  72. color:#666;
  73. background:#eee;
  74. text-align:center;
  75. font-family:Tahoma,Verdana,sans-serif;
  76. font-size:11px;
  77. padding: 6px 10px; }
  78. td.first {
  79. font-weight:bold; }
  80. ul,ol {
  81. display:inline-block;
  82. margin:0;
  83. padding: 10px 10px 10px 30px;
  84. list-style:square; }
  85.  
  86. dt {
  87. padding-top:5px; }
  88. dd {
  89. margin-bottom:5px; }
  90.  
  91. div {
  92. display:block;
  93. margin: 0;
  94. padding: 0;
  95. text-align:left; }
  96.  
  97. form,fieldset {
  98. float:none;
  99. margin:0;
  100. padding:0;
  101. border:0; }
  102. select,input,textarea {
  103. background:transparent;
  104. border:0;
  105. font-size:13px;
  106. font-family:"Times New Roman",sans-serif;
  107. color:#fff; }
  108.  
  109. img {
  110. margin:0;
  111. padding:0;
  112. border:0; }
  113.  
  114. .float_left {
  115. float:left; }
  116. .float_right {
  117. float:right; }
  118.  
  119. .clear {
  120. clear:both; }
  121. .clear_left {
  122. clear:left; }
  123. .clear_right {
  124. clear:right; }
  125.  
  126. .left {
  127. text-align:left; }
  128. .right {
  129. text-align:right; }
  130. .center {
  131. text-align:center; }
  132.  
  133. .transparent {
  134. background:transparent !important; }
  135.  
  136. .background {
  137. float:left;
  138. clear:both;
  139. width:100%;
  140. text-align:center;
  141. background:#7fb725 0 0 repeat url('../images/bkg.png'); }
  142. .external {
  143. position:relative;
  144. clear:both;
  145. margin:0 auto;
  146. width:820px;
  147. background:transparent; }
  148. .background .external {
  149. background:transparent 100% 0 repeat-y url('../images/content_bkg.png'); }
  150.  
  151. .sidebar {
  152. float:left;
  153. clear:none;
  154. width:235px;
  155. padding-bottom:320px;
  156. background:transparent; }
  157.  
  158. .sidebar .menu {
  159. display:block;
  160. float:left;
  161. clear:both;
  162. padding:0;
  163. margin:50px 0;
  164. width:235px;
  165. list-style:none; }
  166. .sidebar .menu li {
  167. display:block;
  168. float:left;
  169. clear:both;
  170. width:235px;
  171. height:35px;
  172. padding:0;
  173. margin:5px 0;
  174. line-height:35px;
  175. background:0 0 no-repeat url('../images/menu_bar.png'); }
  176. .sidebar .menu li a {
  177. display:block;
  178. padding:0 10px 0 50px;
  179. height:35px;
  180. line-height:35px;
  181. white-space:nowrap;
  182. color:#fff;
  183. font-size:15px;
  184. font-weight:bold; }
  185.  
  186. .bottom {
  187. position:relative;
  188. float:left;
  189. clear:both;
  190. height:1px;
  191. line-height:1px; }
  192. #contact {
  193. display:block;
  194. position:absolute;
  195. left:0;
  196. bottom:50px;
  197. float:left;
  198. clear:both;
  199. padding:0;
  200. margin:0;
  201. width:235px; }
  202. #contact .form_text,
  203. #contact .form_textarea,
  204. #contact .form_submit {
  205. margin:5px 0;
  206. padding:0;
  207. width:223px;
  208. background:0 0 no-repeat; }
  209. #contact .form_text {
  210. height:30px;
  211. background-image:url('../images/input_small.png'); }
  212. #contact .form_text input {
  213. position:relative;
  214. top:5px;
  215. left:10px;
  216. width:200px; }
  217. #contact .form_textarea {
  218. height:138px;
  219. background-image:url('../images/input_big.png'); }
  220. #contact .form_textarea textarea {
  221. position:relative;
  222. top:10px;
  223. left:10px;
  224. width:200px;
  225. height:110px; }
  226. #contact .form_submit {
  227. height:30px;
  228. text-align:right;
  229. background:134px 0 no-repeat url('../images/input_submit.png'); }
  230. #contact .form_submit input {
  231. width:89px;
  232. height:30px; }
  233.  
  234. #main {
  235. position:relative;
  236. right:50px;
  237. float:right;
  238. clear:none;
  239. width:485px; }
  240. #main #logo {
  241. display:block;
  242. position:relative;
  243. float:left;
  244. clear:none;
  245. width:201px;
  246. height:240px;
  247. padding:0;
  248. margin:0 30px 30px 0;
  249. font-size:38px;
  250. background:#666 0 0 no-repeat url('../images/logoo.jpg'); }
  251. #main #logo a,
  252. #main #logo a:hover {
  253. display:block;
  254. width:226px;
  255. height:340px;
  256. background:transparent;
  257. text-decoration:none;
  258. outline:0; }
  259. #main #logo span {
  260. display:block;
  261. position:absolute;
  262. left:0;
  263. bottom:0;
  264. width:226px;
  265. text-align:center;
  266. color:#fff;
  267. line-height:50px;
  268. background:transparent 0 0 repeat url('../images/header_transp.png'); }
  269. #main #logo span strong {
  270. display:inline-block;
  271. padding:0 10px; }
  272.  
  273. #main .hr {
  274. display:block;
  275. clear:both;
  276. padding:0;
  277. margin:10px 0;
  278. border-top:1px solid #7fb725;
  279. height:1px;
  280. line-height:1px;
  281. font-size:1px; }
  282.  
  283. #footer {
  284. float:left;
  285. clear:both;
  286. width:100%;
  287. text-align:center;
  288. background:transparent; }
  289. #footer .menu {
  290. display:block;
  291. float:right;
  292. clear:both;
  293. position:relative;
  294. right:50px;
  295. width:485px;
  296. padding:10px 0;
  297. margin:30px 0 30px;
  298. border-top:1px solid #7fb725;
  299. list-style:none; }
  300. #footer .menu li {
  301. display:block;
  302. float:left;
  303. clear:none;
  304. padding:0 10px;
  305. border-right:1px solid #666;
  306. font-size:15px;}
  307. #footer .menu li.last {
  308. border-right:0; }
  309. #footer .menu li a,
  310. #footer .menu li a:hover {
  311. color:#666; }
  312. .menu ul {
  313. height: 0;
  314. overflow: hidden;
  315. opacity: 0;
  316. transition: 0.2s opacity ease-in;
  317. position:relative;
  318. }
  319. }
  320. li:hover > ul {
  321. height: auto;
  322. opacity: 1;
  323. }