Jump to content
  • 0

ie6 + background-image = 1px смещение


SteaM
 Share

Question

Вобщем есть у меня несколько дивов, у которых прописан фон в css

Во всех браузерах отчлино даже в ИЕ7, а вот в ИЕ6 засада - на пиксель опускает все фоны этих дивов.

Вопрос: можно ли исправить это для ИЕ6 без css хакинга

а то приходится создавать грамоздкие дубликаты для ИЕ6 типа

#main_logo {
height: 141px;
width: 631px;
background-image: url(../pic/main_logo.jpg);
background-repeat: no-repeat;
margin-top: 16px;
position: relative;
}
*html #main_logo {
height: 141px;
width: 631px;
background-image: url(../pic/main_logo.jpg);
background-repeat: no-repeat;
margin-top: 15px;
position: relative;
}

ТАк же как в принципе

#main_logo {
height: 141px;
width: 631px;
background-image: url(../pic/main_logo.jpg);
background-repeat: no-repeat;
margin-top: 16px;
_margin-top: 15px;
position: relative;
}

мне не подходит! Не валидно это!

Пример в архиве - http://dump.ru/file/1352109

Кароче вот dc64fc102b.png и вот 6f335c7041.jpg

второе как вы поняли это ИЕ6

Edited by SteaM
Link to comment
Share on other sites

6 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