Jump to content
  • 0

Лишнии отступы а списке li убрать


okunev2
 Share

Question

Вот такая вот проблема, не знаю как избавится от кривоты в IE и Мозиле, сделать как в Опере ровно:

unled1fyz.jpg


/* Treeview */
#ex2 {margin: 0 12px 26px 30px;}
#ex2 ul li a.first {font: bold 12px Tahoma; color: #000000;}
.treeview, .treeview ul {padding: 0; margin: 0; list-style: none;}
.treeview ul {background-color: none; margin-top: 4px;}
.treeview .hitarea {background: url('./images/treeview-default.gif') -64px -25px no-repeat; width: 16px; height: 16px; margin: 1px 0 0 -16px; float: left; cursor: pointer;}
/* fix for IE6 */
* html .hitarea {display: inline; float: none;}
.treeview li {margin: 0; padding: 5px 0 5px 14px; display: block; }
.treeview a {margin-left: 2px; font: normal 12px Tahoma; color: #000000; text-decoration: none;}
.treeview a.hover {text-decoration: none; cursor: pointer;}
.treeview a.selected {margin-left: -2px; padding: 4px 5px 4px 5px; background-color: #b5b5b5;}
#treecontrol {margin: 1em 0; display: none;}
.treeview li {background-position: 0 0; background-repeat: no-repeat;}
.treeview li.collapsable, .treeview li.expandable {background-position: 0 -176px;}
.treeview .expandable-hitarea {background-position: -80px -3px;}
.treeview li.last {background-position: 0 -1765px;}
.treeview li.lastCollapsable, .treeview li.lastExpandable {background-image: url('./images/treeview-default.gif');}
.treeview li.lastCollapsable {background-position: -2px -109px;}
.treeview li.lastExpandable {background-position: -34px -65px;}
.treeview div.lastCollapsable-hitarea, .treeview div.lastExpandable-hitarea {background-position: 0;}
.treeview-gray li {background-image: url('./images/treeview-gray-line.gif');}
.treeview-gray .hitarea, .treeview-gray li.lastCollapsable, .treeview-gray li.lastExpandable {background-image: url('./images/treeview-gray.gif');}


<div id="ex2">
<ul id="navigation">
<li><a href="?1" class="first">Фото</a>
<ul>
<li><a href="?1.1">Фотоаппараты</a>
<ul>
<li><a href="?1111">test</a></li>
<li><a href="?11112">test</a></li>
<li><a href="?11113">test</a></li>
</ul>
</li>
<li><a href="?1.2">Объективы</a>
<ul>
<li><a href="?1.2.777">Для Canon</a></li>
<li><a href="?1.2.0">Для Nikon</a>
<ul>
<li><a href="?1.2.0.1">Nikkor Af 346 4237 753 2462 773</a></li>
<li><a href="?1.2.0.2">Nikkor Af 346 4237 753 2462 773</a></li>
<li><a href="?1.2.0.3">Nikkor Af 346 4237 753 2462 773</a></li>
<li><a href="?1.2.0.4">Nikkor Af 346 4237 753 2462 773</a></li>
<li><a href="?1.2.0.5">Nikkor Af 346 4237 753 2462 773</a></li>
</ul>
</li>
<li><a href="?1.2.1">Item 1.2.1</a>
<ul>
<li><a href="?1.2.1.0">Item 1.2.1.0</a></li>
</ul>
</li>
<li><a href="?1.2.2">Item 1.2.2</a>
<ul>
<li><a href="?1.2.2.0">Item 1.2.2.0</a></li>
<li><a href="?1.2.2.1">Item 1.2.2.1</a></li>
<li><a href="?1.2.2.2">Item 1.2.2.2</a></li>
</ul>
</li>
</ul>
</li>
</ul>
</li>
</ul>
</div>

Link to comment
Share on other sites

10 answers to this question

Recommended Posts

  • 0
  On 6/4/2011 at 3:52 PM, buddah said:

да знаю я это, просто не понятно из-за того что все на js завязано. где точно под ИЕ можно сделать, но как это себя поведет в Мозиле

  On 6/4/2011 at 3:52 PM, buddah said:

Была схожая ситуация, помогло vertical-align: baseline

куда прописали, на какое условие?

Link to comment
Share on other sites

  • 0
  On 6/4/2011 at 4:19 PM, buddah said:

Пройдите по ссылке, там куча вариантов. Читайте, экспериментируйте.

уже все перепробывал, не пойму

Под ИЕ то можно как-то подправить, а вот как быть с Мозилой

Link to comment
Share on other sites

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

  • Обсуждения

    • Актуальные контакты: Telegram: @Nikker_web E-Mail:   tarasevich.email@gmail.com Портфолио https://www.behance.net/d4d4186e Разрабатываю дизайн групп в соц сетях, сайтов, приложений, другой дизайн под заказ    
    • Актуальные контакты: Telegram: @Nikker_web E-Mail:   tarasevich.email@gmail.com   Разрабатываю дизайн групп в соц сетях, сайтов, приложений, другой дизайн под заказ   Портфолио https://www.behance.net/d4d4186e
    • Доброго всем времени суток. Прошу помощи. Научите принципу изменения футера. Движок Xenforo. Версия 2.2.10. Стиль дефолтный. Что именно нужно в итоге на фото примере. Мой шаблон app.footer less имеет следующее значение.  .p-footer { .xf-publicFooter(); a { .xf-publicFooterLink(); } } .p-footer-inner { .m-pageWidth(); .m-pageInset(); padding-top: @xf-paddingMedium; padding-bottom: @xf-paddingLarge; } .p-footer-row { .m-clearFix(); margin-bottom: -@xf-paddingLarge; } .p-footer-row-main { float: left; margin-bottom: @xf-paddingLarge; } .p-footer-row-opposite { float: right; margin-bottom: @xf-paddingLarge; } .p-footer-linkList { .m-listPlain(); .m-clearFix(); > li { float: left; margin-right: .5em; &:last-child { margin-right: 0; } a { padding: 2px 4px; border-radius: @xf-borderRadiusSmall; &:hover { text-decoration: none; background-color: fade(@xf-publicFooterLink--color, 10%); } } } } .p-footer-rssLink { > span { position: relative; top: -1px; display: inline-block; width: 1.44em; height: 1.44em; line-height: 1.44em; text-align: center; font-size: .8em; background-color: #4682B4; border-radius: 2px; } .fa-rss { color: white; } } .p-footer-copyright { margin-top: @xf-elementSpacer; text-align: center; font-size: @xf-fontSizeSmallest; } .p-footer-debug { margin-top: @xf-paddingLarge; text-align: right; font-size: @xf-fontSizeSmallest; .pairs > dt { color: inherit; } } @media (max-width: @xf-responsiveMedium) { .p-footer-row-main, .p-footer-row-opposite { float: none; } .p-footer-copyright { text-align: left; padding: 0 4px; // aligns with other links } }  
    • Нужны сайты с примерами верстки, типа https://css-tricks.com/. Типовые приемы и нестандартные на все случаи жизни. Накидайте ссылок.
×
×
  • 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