Jump to content
  • 0

резина по вертикали


vr201
 Share

Question

доктайп хтмл 1,0 транситионал

задача. заставить три дива растягиваться на 100% по высоте окна.

внутри них четвертый див с минимальной высотой 500px;

хотелось бы, чтобы когда текста было много (т.е. суммарно больше высоты в 500px)

one, two и three "тянулись" вниз..

CSS

* {margin: 0; padding: 0;}

html, body {height: 100%;}

.one {height: 100%; background: red url('image.gif') top repeat-x;}

.two {height: 100%; background: green url('image2.gif') bottom repeat-x;}

.three {height: 100%; background: #fff; margin: 0 200px;}

.text {min-height: 500px; height: auto; //height: 500px;}

HTML

<div class="one">

<div class="two">

<div class="three">

<div class="text">текст</div>

</div>

</div>

</div>

поиск не помог.. целый день колдую, ничего толкового не получается.

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

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