Jump to content
  • 0

отступы над/под меню


HarPy
 Share

Question

Проблема с меню, вставляю код меню к себе на сайт, над и под менюшкой появляются отступы примерно 10px - 15px - не могу понять где мне это исправить. Подскажите может еще что нибудь добавить или убрать нужно, вот коды:

css:

#dropdown_nav {width:1076px;padding-left:0px;padding-top:0px;display:inline-block;list-style:none;border-radius:5px;border-bottom:0px solid #777;-moz-border-radius:5px;-webkit-border-radius:5px;background: #DCDCDC url(../img/menu.png);-moz-box-shadow: 0 0 5px #888;-webkit-box-shadow: 0 0 5px#888;box-shadow: 0 0 5px #888;} #dropdown_nav li {padding:12px 0px 12px 0px;float:left;position:relative;display:inline-block;} #dropdown_nav li a {text-decoration:none;font-weight: bold;font-size:15px;color:#ccc;padding:10px 15px 10px 15px;border-right:1px solid #666;-moz-transition: background-color 0.3s 0.01s ease;-o-transition: background-color 0.3s 0.01s ease;-webkit-transition: background-color 0.3s 0.01s ease;} #dropdown_nav li a:hover {background: #FF6766;text-decoration:none;color:#fff;} #dropdown_nav li a:active {background:#e2e2e2;} #dropdown_nav li a.first {-moz-border-radius:5px 0px 0px 5px;-webkit-border-radius:5px 0px 0px 5px;} /*#dropdown_nav li a.last { -moz-border-radius:0px 5px 5px 0px; -webkit-border-radius:0px 5px 5px 0px; }*/  /* Sub-Nav стили */#dropdown_nav .sub_nav {width:161px;position:absolute;top:41px;left:0px;border-top: 2px solid #FF6766;background: #DCDCDC url(../img/pinstriped_suit.png);-moz-box-shadow: 0 0 10px #333;-webkit-box-shadow: 0 0 10px #333;box-shadow: 0 0 10px #333; } #dropdown_nav .sub_nav li {width:160px;padding:0px;} #dropdown_nav .sub_nav li a {font-weight: normal;font-size:13px;display:block;border-bottom:1px solid #444;}#dropdown_nav .sub_nav li a:hover {background:#333;}#dropdown_nav .sub_nav li a:active {background:#333;}

html:

<table width=100% height=100% border=1><tr><td height=5 bgcolor=#1E90FF></td></tr><tr height=128px background="my.files/img/header.jpg"><td align=left valign=middle> </td></tr><tr><td height=41> <ul id="dropdown_nav"> <li><a class="first" href="#">Главная</a></li> <li><a href="#">Шаблоны</a> <ul class="sub_nav"> <li><a href="#">Подменю #1</a></li> <li><a href="#">Подменю #2</a></li> <li><a href="#">Подменю #3</a></li> <li><a href="#">Подменю #4</a></li> </ul></td></tr><tr><td> </td></tr></table>
$(function() {$('#dropdown_nav li').find('.sub_nav').hide();$('#dropdown_nav li').hover(function() {$(this).find('.sub_nav').fadeIn(400); }, function() {$(this).find('.sub_nav').fadeOut(100); }); });
Edited by HarPy
Link to comment
Share on other sites

4 answers to this question

Recommended Posts

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. See more about our Guidelines and Privacy Policy