Log In · Register

 
 
Closed TopicStart new topic
This shouldn't be giving me such a hard time, weird blank space?
LaRachel
post Nov 25 2009, 07:55 PM
Post #1


Senior Member
***

Group: Member
Posts: 75
Joined: Feb 2009
Member No: 717,000



whenever i look at this, there's a weird white space, and it's pushing it over so that there's a scroll bar. why?




[code]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<head>
<title>Footer tester</title>
<style type="text/css">
#footer {
position:absolute;
bottom:0;
width:100%;
height:60px; /* Height of the footer */
background:#6cf;

}
</style>
</head>
<body>
<div id="footer">
</div>
</body>
</html>
[code]
 
newkidontheblock
post Nov 26 2009, 05:44 AM
Post #2


Offline.
*****

Group: Official Designer
Posts: 609
Joined: Mar 2007
Member No: 507,591



By default most browser ads a margin around you page, you can get rid of it
CODE
<style type="text/css" >
    body {
            margin: 0px;
        }
</style>


the scroll-bar is added because when you add the
CODE
width:100%;

it doesn't check for the default margin.
 

Closed TopicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members: