Страница 1 из 1

В IE 6 заежает подвал на меню по сторонам

Добавлено: 31 июл 2014, 04:26
romanu416
В IE 6 заежает подвал на меню по сторонам
http://5.kilssbosses.myjino.ru/
[HTML]<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>3 Колонки</title>
<link href="css/common.css" rel="stylesheet" type="text/css">
<!--[if IE 6]>
<link href="css/ie.css" rel="stylesheet" type="text/css">
<![endif]-->
</head>
<body>
<div id="container">
<div id="main">
<div id="all">
<div id="left">left
left
left
left
left
left
left
left
left
left end</div>
<div id="right">right
right
right
right
right
right
right end</div>
<div id="center">center center center center center center center center center center center center center center center center</div>
</div>
</div>
<div id="footer"></div>
</div>
</body>
</html>
[/HTML]

Для всех браузеров

Код: Выделить всё

html{
	height:100%;
}
body{
	height:100%;
	margin:0;
}
#container{
	min-width:800px;
	max-width:1000px;
	margin:auto;
}
#main{
	background:#ccf ;
	min-height:100%;
	margin:0 0 -100px;
}
#all{
	overflow:hidden;
	padding:0 0 100px;
}
#left{
	float:left;
	width:200px;
	background:#f60;
}
#right{
	float:right;
	width:200px;
	background:#f60;
}
#center{
	background:#2D1DB8;
	margin:0 200px;
}
#footer{
	background:#FF0004;
	height:100px;
	margin:auto;
}
Стили для IE 6

Код: Выделить всё

*html #main{
	height:100%;
}

*html #container{
	width:expression{
(document.documentElement.clientWidth || document.body.clientWidth) < 800? '800px':
(document.documentElement.clientWidth || document.body.clientWidth) > 1000? '1000px': 'auto' ); 
}
*html #all{
	width:100%;
}

Re: В IE 6 заежает подвал на меню по сторонам

Добавлено: 31 июл 2014, 11:49
Duncon
Забей на ie6 на нём 0,1% пользователей сидит, и то скорее всего это боты.. Его актуально было учитывать лет 5 назад, сегодня нет смысла..

Re: В IE 6 заежает подвал на меню по сторонам

Добавлено: 05 сен 2014, 17:28
AlexGuru
Если принципиально, делать и под шестой эксплорер, вам надо написать таблетку на яваскрипте. Попробуйте погуглить, существует много готовых решений.

Re: В IE 6 заежает подвал на меню по сторонам

Добавлено: 11 сен 2014, 18:13
AiK
Гуглить ничего не надо :) Рекомендую модернизр http://modernizr.com/