1: Как убрать отступ между правым и левым контентом(на картинке проблема указана под номером 1) Пробовал и маржины обнулять и паддинги и бордеры.. Не фурычет...(((
2: Как сделать так, чтобы правый контент изменял свою height одновременно с левым... Может как-то наследованием?! ставил height:inherit - не помогло... (на картинке под номером 2)
<!--бар и хедер--> <div class="bar"><img src="bar.png"></div> <div class="header-area"><img src="header.jpg"></div>
<!-- контент -->
<div class="content"> <p>Lorem ipsum dolor set amir tolos and tacos for plenty to see. jack is the orange sub marine, by any means I found my plans. </p> <p>Lorem ipsum dolor set amir tolos and tacos for plenty to see. jack is the orange sub marine, by any means I found my plans. </p> <p>Lorem ipsum dolor set amir tolos and tacos for plenty to see. jack is the orange sub marine, by any means I found my plans. </p> <p>Lorem ipsum dolor set amir tolos and tacos for plenty to see. jack is the orange sub marine, by any means I found my plans. </p> <p>Lorem ipsum dolor set amir tolos and tacos for plenty to see. jack is the orange sub marine, by any means I found my plans. </p> <p>Lorem ipsum dolor set amir tolos and tacos for plenty to see. jack is the orange sub marine, by any means I found my plans. </p>
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
Diego
Здравствуйте!
2 вопроса..
1: Как убрать отступ между правым и левым контентом(на картинке проблема указана под номером 1) Пробовал и маржины обнулять и паддинги и бордеры.. Не фурычет...(((
2: Как сделать так, чтобы правый контент изменял свою height одновременно с левым... Может как-то наследованием?! ставил height:inherit - не помогло... (на картинке под номером 2)
Картинка и код прилагаются:
body {
margin: 0 auto;
padding: 0 1.6em;
background: url('12.jpg');
overflow: auto;
}
/* все для меню */
#menu{
width:766px;
margin:15px;
position: absolute;
}
ul{
list-style:none;
}
#menu li{
list-style:none;
display:block;
float:left;
margin:65px 0 0 0;
}
#menu li a{
display:block;
float:left;
height:34px;
width:122px;
color:#fff;
text-transform:uppercase;
font-size:11px;
font-weight:bold;
background:url(buttongrey.jpg) no-repeat;
line-height:34px;
padding:0 0 0 9px;
text-decoration:none;
}
#menu li a span{
display:block;
height:34px;
color:#d2eeff;
line-height:34px;
padding-right:15px;
text-align:center;
}
#menu li a:hover{
display:block;
float:left;
background:url(buttonblue.jpg) no-repeat;
height:34px;
}
/*————-*/
.wrapper{
width: 766px;
margin: 0 auto;
}
.header-area img{
margin: 0 .1em;
padding: 0;
display: block;
}
.bar
{
position: absolute;
margin:150px 35px 0;
}
/*контент*/
.content{
background: white;
margin: 0 .1em;
width: 616px;
padding: 6em .6em .6em .6em;
float:left;
border:0;
}
div#rightcontent {
width:127px;
margin-top:0;
margin-left: 0;
float:right;
background: white;
}
div#rightcontent ul {
text-align: left;
padding: 6em 10px;}
/*энд контент*/
p {
text-align: justify;
font-family: verdana, tahoma, monospace;
font-size: 9pt;
}
.footer{
width:766px;
height:94px;
float:left;
}
.footer img {
padding: 0;
display: block;
}
ЗАРАНЕЕ ВСЕМ БОЛЬШОЕ СПАСИБО!!!
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.