body { font: 12px/100% Verdana, Arial, Helvetica, sans-serif; background: #666666; margin: 0 auto; /* it's good practice to zero the margin and padding of the body element to account for differing browser defaults */ padding: 0; text-align: center; /* this centers the container in IE 5* browsers. The text is then set to the left aligned default in the #container selector */ width:1000px; position:relative; }
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
Love_silense
есть следующий цсс фаил
html, body {
height:100%;
width:100%;
}
body
{
font: 12px/100% Verdana, Arial, Helvetica, sans-serif;
background: #666666;
margin: 0 auto; /* it's good practice to zero the margin and padding of the body element to account for differing browser defaults */
padding: 0;
text-align: center; /* this centers the container in IE 5* browsers. The text is then set to the left aligned default in the #container selector */
width:1000px;
position:relative;
}
#height_container
{
background: #999999;
height: 100%; /* для IE6 */
min-height: 100%;
}
#footer, #height_container, #header
{
width:100%;
}
/**html #height_container
{
overflow: visible;
overflow:hidden;
}*/
#header
{
background-color:#33FF00;
height:100px;
z-index:6;
margin:0px auto;
zoom:1;
position:absolute;
left:0;
top:0;
}
#footer
{
background-color:#000099;
margin:-100px auto 0;
height:100px;
position:relative;
zoom:1;
z-index:5;
}
#news_sidebar, #navigation_sidebar, #work_area
{
height:auto;
float:left;
display:inline-block;
text-align:left;
position:relative;
height:100%;
zoom: 1;
z-index:1;
}
*html #news_sidebar, #navigation_sidebar, #work_area
{
display:inline;
zoom:1;
}
#work_area
{
background-color:#FFFFFF;
margin:0 0 0 150px;
width:700px;
}
#news_sidebar
{
width:150px;
background-color:#FFFF00;
}
#navigation_sidebar
{
width:150px;
background-color:#FFFF00;
margin:0 0 0 -850px;
}
и следующая разметка страницы:
Нужно добавить стилям #news_sidebar, #navigation_sidebar, #work_area
свойство padding-top:100px;
каким то таким образом что-бы их высота не увеличилась. Это возможно?
Видел в интернэте готовые решения для подобного макета, но для самообучения хотелось бы узнать как можно выйти из сложившейся ситуации.
Link to comment
Share on other sites
9 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.