Здравствуйте помогите пожалуйста с DIVами, мне нужно левый и правый блок растянуть на 100% по длине а блок между ними сместить на 10px вниз, при попытках все 3 блока смещаются
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
Budulianin
Здравствуйте помогите пожалуйста с DIVами, мне нужно левый и правый блок растянуть на 100% по длине а блок между ними сместить на 10px вниз, при попытках все 3 блока смещаются
<body>
<div id="Conteiner">
<div id="LeftBlock">
LeftBlock
</div>
<div id="RightBlock">
RightBlock
</div>
<div id="Content">
<div id="CenterBlueBlock">
CenterBlueBlock
</div>
<div id="CenterDarkBlueBlock">
CenterDarkBlueBlock
</div>
</div>
</div>
</body>
\\CSS
Html, Body
{
margin:0;
height:100%;
width:100%;
}
#Conteiner
{
width:100%;
height:100%;
margin:0;
}
#LeftBlock
{
height:100%;
width:150px;
background-color:#CCCCCC;
margin:0;
float:left;
}
#RightBlock
{
height:100%;
width:150px;
background-color:#CCCCCC;
margin:0;
float:right;
}
#Content
{
height:100%;
width:auto;
margin:0;
margin-left:150px;
margin-right:150px;
}
#CenterBlueBlock
{
margin-top:10px;
margin-left:10px;
margin-right:10px;
width:auto;
height:100px;
background-color:#0066CC;
}
#CenterDarkBlueBlock
{
margin-top:0px;
margin-right:10px;
margin-left:10px;
width:auto;
height:30px;
background-color:#000099;
}
Link to comment
Share on other sites
3 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.