Jump to content
  • 0

Ложка дегтя


gordi
 Share

Question

При попытке сделать стандартный трех колоночный макет с колонкоми равной высоты

при помощи display:inline-block; и display:inline; для IE6(7),

появилась проблема в IE8 - не растягивается цветная подложка по высоте.

Пример представляет чисто спортивный интерес.

Edited by gordi
Link to comment
Share on other sites

5 answers to this question

Recommended Posts

  • 0

При попытке сделать стандартный трех колоночный макет с колонкоми равной высоты

при помощи display:inline-block; и display:inline; для IE6(7),

появилась проблема в IE8 - не растягивается цветная подложка по высоте.

Пример представляет чисто спортивный интерес.

Лови дружище

<!DOCTYPE html>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=windows-1251">
<title>display:inline-block (OPERA,FF,IE8) and display:inline (IE6,IE7)</title>
<style type="text/css">
* {margin:0;padding:0;}

#main { border:#000 1px solid;margin:10px auto;min-width:910px;max-width:980px;}
#middle {background:#ff9;border-right:#cc9 200px solid;border-left:#ddd 200px solid;}
.content,.left,.right {
display:inline-block;position:relative;vertical-align:top;overflow:hidden;}
.content {margin-right:-100%;width:100%;}
.left {right:200px;margin-right:-200px;width:200px;}
.right {right:-100%;width:200px;}

*+html #middle {overflow:hidden;}
*+html .content,*+html .left,*+html .right {display:inline;}
*html #main {width:980px;}
*html .content,*html .left,*html .right {display:inline;}
*html .right {right:-580px;}

p {padding:7px;}
.expand a { color:#960;display:block;text-decoration:underline;}
.expand:hover { color:green;height:500px;}
* html .expand a:hover { color:green;height:500px;}
</style>
</head>
<body>
<div id="main">
<div id="middle">
<div class="content">
<p class="expand"><a href="#">Делаем колонку длиннее</a></p><p>Content</p>

<div style="border:#000 1px solid;margin:10px auto;width:500px;"><p>width:500px;</p></div>
</div>
<div class="left"><p class="expand"><a href="#">Делаем колонку длиннее</a></p><p>Left</p></div>
<div class="right"><p class="expand"><a href="#">Делаем колонку длиннее</a></p><p>Right</p></div>
</div>
</div>
</body>

</html>

Link to comment
Share on other sites

  • 0

Спасибо.

Если дело только в этом:


.expand:hover { color:green;height:500px;}
* html .expand a:hover { color:green;height:500px;}

Хотя везде и всегда работало:


.expand a:hover { color:green;height:500px;}

Тогда, вообще, не понятно что с IE8 :)

Да что тут непонятного? Линейка ИЕ вообще бажная наглухо, вот тебе и пример прокола ИЕ8, чуть сложнее задание и ппц, прокололся B)

Link to comment
Share on other sites

  • 0

Да что тут непонятного? Линейка ИЕ вообще бажная наглухо, вот тебе и пример прокола ИЕ8, чуть сложнее задание и ппц, прокололся B)

Ну, скажем не самое соложное мой пример, были и посложнее, и там все было тип-топ с .expand a:hover {color:green;height:500px;}

Edited by gordi
Link to comment
Share on other sites

  • 0

Да что тут непонятного? Линейка ИЕ вообще бажная наглухо, вот тебе и пример прокола ИЕ8, чуть сложнее задание и ппц, прокололся B)

Ну, скажем не самое соложное мой пример, были и посложнее, и там все было тип-топ с .expand a:hover {color:green;height:500px;}

Значит нужно уже смотреть на сочетания свойств и окружающей среды. Т.е. ИЕ может плохо отрабатывать например одно в сочетании с другим, и наоборот.

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