Jump to content
  • 0

страница в три колонки


Lakrein
 Share

Question

Всем привет. Подскажите пжл.

Есть 3 колонки. Центральная должна быть 1000px, по центру. Левая и правая одинаковой ширины в зависимости от свободного места в окне.

Не нашел подходящего решения в нете.А может я не умею пользоваться гуглом :blush:

Link to comment
Share on other sites

7 answers to this question

Recommended Posts

  • 0

Всем привет. Подскажите пжл.

Есть 3 колонки. Центральная должна быть 1000px, по центру. Левая и правая одинаковой ширины в зависимости от свободного места в окне.

Не нашел подходящего решения в нете.А может я не умею пользоваться гуглом :blush:

корень каждого не умею лежит в "не хочу".

Link to comment
Share on other sites

  • 0
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">

<head>
<title>Menu</title>
<meta http-equiv="content-type" content="text/html;charset=utf-8" />
<meta http-equiv="Content-Style-Type" content="text/css" />
<style type="text/css">
* {
margin: 0;
padding: 0;
font: 12px "Trebuchet MS", Verdana, Tahoma, sans-serif;
color: #000;
}

body {
margin: 10px;
}

.wrapper {
position: relative;
overflow: hidden;
}

.left,
.center,
.right,
.left-inner,
.right-inner {
padding-bottom: 32767px;
margin-bottom: -32767px;
}

.left {
float: left;
width: 50%;
//margin-left: -1px;
background: #ccc;
}

.left-inner {
margin-right: 500px;
background: #cee;
}

.right {
float: right;
width: 50%;
margin-left: -500px;
background: #ccc;
}

.right-inner {
margin-left: 500px;
background: #cee;
}

.center {
float: left;
position: relative;
z-index: 1;
width: 1000px;
margin-left: -500px;
background: #ccc;
}
</style>
</head>

<body>

<div class="wrapper">
<div class="left">
<div class="left-inner">left</div>
</div>

<div class="center">
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed rhoncus purus tellus. Aliquam leo enim, hendrerit non cursus non,
pellentesque id sem. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Vivamus vehicula
vulputate dui, at scelerisque mauris cursus eu. Integer nec elit vitae ipsum varius volutpat nec vel dolor. <a href="#">Duis</a> tincidunt augue
quis nisl consequat condimentum. Nulla facilisi. Vestibulum ornare feugiat mollis. Aliquam vel nunc a sem hendrerit pretium. Morbi
convallis posuere hmollis.
</div>

<div class="right">
<div class="right-inner">right</div>
</div>
</div>

</body>
</html>

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