Jump to content
  • 0

макет из трех колонок с одинаковой высотой


tipoc
 Share

Question

Подскажите как сделать трехколонный дизайн сайта с колонками одинаковой высоты. Что-то не получается у меня :) Чтобы работало хотя бы в файрфоксе.

Простейший пример:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1251">
<title>Три колонки одной высоты</title>
<style type="text/css">
html, body {margin: 0;padding: 0}
body {font: 76% arial, sans-serif}
div#container {
width: 100%;
min-height: 500px;
min-width: 500px;
}
div#header {
text-align: center;
background: blue;
color: white;
}
div#center {
border-left: 200px solid orange;
border-right: 150px solid lightgrey;
}
div#wrapper {
float: left;
}
div#left {
position: absolute;
margin-left: -200px;
float: left;
}
div#right {
margin-right: -150px
}
div#footer {
clear: left;
text-align: center;
background: black;
color: white;
}
</style>
</head>
<body>
<div id="container">
<div id="header">This is header</div>
<div id="center">
<div id="wrapper">This is wrapper</div>
<div id="left">This is left</div>
<div id="right">This is right</div>
</div>
<div id="footer">This is footer</div>
</div>
</body>
</html>

Как вот в этом коде сделать так. Чтобы надпись "This is right" была в правом диве (светло-серого цвета).

Link to comment
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

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