Jump to content
  • 0

Div верстка (высота и фон)


darewangog
 Share

Question

Сперва ситуация ! Есть дизайн пытаюсь сверстать но появилась проблема в FF,Opera в IE всё нормально !

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ru">
<head>
<title>test</title>
<style type="text/css">
<!--
html { height: 100%; margin: 0; padding: 0; /*background: #fa0;*/ }
body { height: 100%; margin: 0; padding: 0; background: #ccc; padding: 0 15px }
#page { min-height: 100%; margin: 0 auto; background: #5af }
#container {margin:0 auto; width: 960px;height:auto !important;height:100%;min-height:100%;background: #FFFFFF;}

#left {float:left;width:200px;background: #FFFFFF;}
#right {margin-left:200px;width:760px;}
-->
</style>
</head>
<body>
<div id="page">
<div id='container'>
<div id='left'>1<br>1<br>1<br>1<br>1<br>1<br>1<br>1<br>1<br>1<br></div>
<div id='right'>1<br>1<br>1<br>1<br>1<br></div>
</div>
</div>
</body>
</html>

Выше код проблема в том что в FF,Opera под левый блок left ставиться фон на все высоту нужно чтоб и под right тоже ставилась фон под всю высоту зависимо от левого края ! Короче нада так чтоб высота у них получалась одинакавая !

  Quote
Кстати IE понимает правильно, и еще если сделать текста в правом блоке больше то тогда получается то что нада
Link to comment
Share on other sites

5 answers to this question

Recommended Posts

  • 0
  psywalker said:
Поищи в инете, да и тут не раз обсуждалось уже. Колонки одинаковой высоты.

Честно руки уже опускаються ! Так меня это замучила тыкни пальцом на решение очен прошу !

Link to comment
Share on other sites

  • 0
  darewangog said:
Честно руки уже опускаються ! Так меня это замучила тыкни пальцом на решение очен прошу !

Не вопрос, выбирай http://www.google.com/search?q=%D0%9A%D0%B...;client=firefox

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