Jump to content
  • 0

Лишний отступ у блока в ИЕ сверху


ProxY
 Share

Question

В ИЕ6 появляется лишний отступ примерно в 5-6 пикс у блока flash, в остальных браузерах все как надо.

 #center{
width:800px;
position:absolute;
left:50%;
margin-left:-400px;
}
#header{
width:800px;
height:129px;
background-image:url(images/bg_header.gif);
background-repeat:no-repeat
}
#buttons_s{
height:32px;
width:800px;
text-align:right

}
#logo_{
height:67px;
width:800px;
}
#top_menu{
height:35px;
width:800px;
font-size:12px;
color:#E8AB00;
text-align:right;
padding-bottom:0px
}
a.top_menu{
font-size:12px;
color:#E8AB00;
text-decoration:underline
}
a.top_menu:hover{
font-size:12px;
color:#E8AB00;
text-decoration:none
}

#flash{
height:244px;
width:800px;

а вот сам кусок страницы:

<div id="center">
<div id="header">
<div id="buttons_s">
<a href="#"><img style="padding-top:10px; padding-right:27px" src="images/home_s.gif" /></a>
<a href="#"><img style="padding-right:29px" src="images/map_s.gif" /></a>
<a href="#"><img style="padding-right:71px" src="images/mail_s.gif" /></a>
</div>
<div id="logo_">
<a href="#"><img style="padding-left:34px" src="images/logo.gif" /></a>

</div>
<div id="top_menu">
<span style="padding-right:48px;">
<a class="top_menu" style="padding-right:20px" href="#">О нас</a>
<a class="top_menu" style="padding-right:20px" href="#">Партнеры</a>
<a class="top_menu" style="padding-right:20px" href="#">Контакты</a>
<a class="top_menu" href="#">Оформить заявку</a>
</span>
</div>
</div>
<div id="flash"><img src="images/flash.gif" /></div>
<div id="news">111</div>
<div id="content">eeee</div>

не могу исправить, уже пол недели бьюсь, помогите плиз.

Link to comment
Share on other sites

5 answers to this question

Recommended Posts

  • 0

1. Написать проблемный код в одну строчку. В IE такие фокусы проходят.

2. Специально для IE добавить _margin-top: 5px или другой margin с нужной стороны, чтобы убрать отступ.

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

×
×
  • 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