Jump to content
  • 0

Резина)


renkoman
 Share

Question

Первый раз взялся за резиновую вёрстку, и вот тут у меня получилась хрень...мож кто подскажет?!

у меня футер может наехать даже на хэдер =) прибит он к полу через position:absolute, bottom:0;

Вот в обычном состоянии http://s017.radikal.ru/i432/1211/69/f11d81b167dc.jpg

вот ,когда появляется прокрутка - http://www.radikal.ru/action.aspx

код HTML:


<!doctype html>
<html>
<head>
<title>резина</title>
<meta charset="utf-8">
<link href="style.css" rel="stylesheet" type="text/css">
</head>
<body>
<header>
<div id="headbg">
<div id="logo">
</div>
<div id="menu">
<ul>
<li id="nav_1"><a href="#">Home</a></li>
<li id="nav_2"><a href="#">About</a></li>
<li id="nav_3"><a href="#">Portfolio</a></li>
<li id="nav_4"><a href="#">Blog</a></li>
<li id="nav_5"><a href="#">Features</a></li>
<li id="nav_6"><a href="#">Contact</a></li>
</ul>
</div>
<div id="mainpic">
</div>
</div>
</header>
<div id="middle">
<p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diem nonummy
nibh euismod tincidunt ut lacreet dolore magna aliguam erat
volutpat. Ut wisis enim ad minim veniam, quis nostrud exerci tution ullamcorper
suscipit lobortis nisl ut aliquip ex ea commodo consequat. Duis te feugifacilisi.
Duis autem dolor in hendrerit in vulputate velit esse molestie consequat, vel
illum dolore eu feugiat nulla facilisis at vero eros et accumsan et iusto odio
</p>
</div>
<div id="footer">
<div id="foottext">
<p>sdfsdfsdfsdfsdfsdfsdfLorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diem nonummy
nibh euismod tincidunt ut lacreet dolore magna aliguam erat
volutpat. Ut wisis enim ad minim veniam, quis nostrud exerci tution ullamcorper
suscipit lobortis nisl ut aliquip ex ea commodo consequat. Duis te feugifacilisi.
</p>
</div>
</div>
</body>

код CSS:


body{
outline:1px solid #f00;
margin:0;
background:#5f8fbf;

}
header{
height:450px;
outline:1px solid #000;
margin-top:15px;
margin-bottom:15px;
}
#logo{
background:url(images/logo_here.jpg);
width:166px;
height:34px;
position:relative;
left:310px;
top:26px;
}
#headbg{
background:url(images/bg-header.jpg) no-repeat;
height:429px;
width:1500px;
margin:0 auto;
}
#mainpic{
background:url(images/mainpic.jpg);
width:938px;
height:303px;
margin:0 auto;
}
#menu {
width:581px;
height:35px;
position:relative;
left:660px;
top:-24px;

}
#menu ul{
list-style-image:url(images/poloska.png);
list-style-position:inside;
}
#menu li {
background:url(images/bg-menu.jpg);
float:left;
background-repeat:repeat-x;
padding-top:4px;
padding-bottom:6px;
padding-left:16px;
padding-right:10px;
}
#menu a {
text-decoration:none;
color:#fff;
font-size:14px;
padding-left:10px;
}
#menu a:hover{
color:#e75a1e;
}
#nav_1 {
border-radius:10px 0 0 10px;
}
#nav_6 {
border-radius:0 10px 10px 0;
}
#middle {
width:1500px;
margin:0 auto;
background: #e3e8cc;
outline:1px solid #000;
}
#footer {
height:150px;
width:100%;
outline:1px solid #0f0;
position:absolute;
bottom:0;
}
#foottext{
width:1500px;
outline:1px solid #000;
margin:0 auto;
}

Edited by renkoman
Link to comment
Share on other sites

5 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.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. See more about our Guidelines and Privacy Policy