У меня такая проблема, на div#footer стоить margin-top:5px; но div#footer не отталкиваеться от div#rightbar. А когда на div#rightbar стоить margin-bottom:5px; тогда footer отталкиваеться вниз. По дизайну div#footer стоить после div#rightbar, а по html коду div#footer стоить после div#content
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
HQ_Maker
Здрасти всем, у меня возникла проблема в margin, прощу помощь.
Вот html страница
и css
body {
background: url('2.png') repeat-x;
margin: 0 auto;
width: 1204px;
}
div#logo {
background: url('1.jpg') no-repeat;
width: 1200px;
height: 200px;
margin: 0 auto;
}
div#center {
background-color: red;
border-left: 2px solid black;
border-right: 2px solid black;
}
div#leftbar{
background: #CCFFFF;
border: 1px dotted black;
margin: 4px 0 0 4px;
padding: 2px 4px 0 4px;
border-radius: 8px 8px 8px 8px;
float: left;
width: 185px;
}
div#rightbar{
background: #CCFFFF;
border: 1px dotted black;
margin: 4px 4px 4px 0px;
padding: 2px 4px 0 4px;
border-radius: 8px 8px 8px 8px;
float: right;
width: 185px;
}
div#content{
background: #FCFCFC;
border: 1px dotted white;
margin: 4px auto;
padding: 0 10px 0 10px;
border-radius: 6px;
width: 770px;
overflow: hidden;
}
div#footer{
background: url('footer.png') repeat-x;
height: 28px;
margin-top: 5px;
padding: 8px 0 0 8px;
clear: both;
}
div#panel{
background: #0273B1;
border: 1px solid black;
border-radius: 10px 0 10px 0;
margin: 0 auto;
width: 180px;
height: 25px;
font-family: Georgia1, Georgia, serif;
font-size: 17px;
text-align: center;
color: white;
padding-top: 5px;
}
table,td, th {
border: 1px solid #0273B1;
text-align: center;
}
table{
margin: 5px auto;
border-collapse:collapse;
font-size: 15px;
width: 183px;
}
th{
background-color:red;
}
td{
color: red;
}
У меня такая проблема, на div#footer стоить margin-top:5px; но div#footer не отталкиваеться от div#rightbar. А когда на div#rightbar стоить margin-bottom:5px; тогда footer отталкиваеться вниз. По дизайну div#footer стоить после div#rightbar, а по html коду div#footer стоить после div#content
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.