Jump to content
  • 0

жесть в ИЕ


Gatto
 Share

Question

в фаерфоксе работает, а в ИЕ - это просто жесть...

Где грабли, кто подскажет?

div.general {
margin: 0 auto;
width: 50em;
height: 100em;
border-style: dashed;
}
div.head {
width: 50em;
height: 5em;
border-style: dashed;
}
div.side {
position: relative;
width: 15em;
height: 94.5em;
border-style: dashed;
float: left;
}
div.mine {
position: relative;
left: 15em;
width: 35em;
height: 94.5em;
border-style: dashed;
border-color: #933;
}
div.bottom {
position: relative;
width: 50em;
height: 3em;
border-style: dashed;
}

Link to comment
Share on other sites

4 answers to this question

Recommended Posts

  • 0

проблема очень глубока. соль в том что ИЕ неправильно работает со флоатом (отлично от других значимых браузеров)

Чтобы не мучиться я бы просто сделал и правй элемент плавающим.

div.general {
margin: 0 auto;
width: 100px;
background: red;
}
div.head {
width: 100px;
height: 10px;
background: blue;
}
div.side {
position: relative;
width: 30px;
height: 200px;
background: black;
float: left;
}
div.mine {
position: relative;
width: 70px;
height: 200px;
float: right;
background: green;
}
div.bottom {
position: relative;
width: 100px;
height: 10px;
background: brown;
}

Link to comment
Share on other sites

  • 0
Я не ошибусь, если скажу что в коде?

Что код делать то должен?

<html>
<div class="general">
<div class="head"></div>
<div class="side"></div>
<div class="bottom"></div>
</div>

Должна быть страница шаблонная с выравниванием по центру главного блока, ну и внутри блоки должны распологаться логично, чтобы в них инфу залить...

Link to comment
Share on other sites

  • 0

зачем ты всем колонкам постваил позицию relative?

лучше создать лишний ДИВ и засунуть туда все твои колонки и указать им плавать относительно того же ДИВа.

и ИЕ, если правильно написать код, все отлично понимает

ЗЫ

Рекомендую почитать книгу Енди Бадда *Мастерская CSS*

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
 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