Есть слой с автоматической высотой, в нем находятся 2 слоя, справа и слева с фиксированными высотами. При этом, главный слой, по идее, должен удлиняться в зависимости от высоты тех 2-х слоев.
<!--Content left --> <div class="content_fixed_left"> </div> <!--End of content right --> <!--Content left --> <div class="content_fixed_right"> </div> <!--End of content right --> </div> </div>
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.
Актуальные контакты:
Telegram: @Nikker_web
E-Mail: tarasevich.email@gmail.com
Портфолио https://www.behance.net/d4d4186e
Разрабатываю дизайн групп в соц сетях, сайтов, приложений, другой дизайн под заказ
Актуальные контакты:
Telegram: @Nikker_web
E-Mail: tarasevich.email@gmail.com
Разрабатываю дизайн групп в соц сетях, сайтов, приложений, другой дизайн под заказ
Портфолио https://www.behance.net/d4d4186e
Question
Mihail Dobkin
Странная возникла проблема...
Есть слой с автоматической высотой, в нем находятся 2 слоя, справа и слева с фиксированными высотами. При этом, главный слой, по идее, должен удлиняться в зависимости от высоты тех 2-х слоев.
Код
style.css
div.main {width : 1000px;
height : auto;
margin : 0px auto;
padding : 0px 0px;
border: 1px solid red;
}
div.header{
background : url(images/name_01.jpg);
width : 1000px;
height : 33px;
margin : 0px 0px;
padding : 0px 0px;
border: 1px solid red;
}
div.content_auto{
background : url(images/name_09.jpg) repeat-y;
width : 1000px;
height : auto;
margin : 0px 0px;
padding : 0px 0px;
border: 1px solid red;
min-width: expression(document.body.clientWidth > 1000 ? "100%" : "1000px")
}
div.content_fixed_left{
width : 325px;
height : 580px;
margin : 0px 0px;
padding : 0px 0px;
border: 1px solid red;
float: left;
}
div.content_fixed_right{
width : 636px;
height : 580px;
margin : 0px 0px;
padding : 0px 0px;
border: 1px solid red;
float: right;
}
Link to comment
Share on other sites
1 answer 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.