PDA

View Full Version : Why



Gangster
05-04-2008, 07:30 PM
Well basically, say i'm coding a layout, and i make the margin of the banner 0px, and lets say next i code the top of the content, for some reason, when i make it 0px from the top, it goes right under the banner. not from the top of the page. SO say i made it 12px form the top, it will be 12px from the bottom of the banner. Why? I don't want it like this :)

Bojangles
05-04-2008, 08:20 PM
Link to it? :S Tell me which bits you want where.

Decode
05-04-2008, 08:32 PM
What browser are you using?

Gangster
06-04-2008, 01:21 PM
Link to it? :S Tell me which bits you want where.

i wnt it for all of them, here's the code

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>

<title>HabboFury ;; We can light up your day!</title>
<style type="text/css">
#topbar {
background:url(images1/TopBar.PNG);
width:1025px;
height:51px;
padding-top:10px;
margin-top:0px;
margin-left:-8px;
font-family: Verdana;
font-size: 11px;
color: #FFFFFF;
}

#banner {
background:url(images1/Banner.PNG);
margin-top:0px;
}


</style>

</head>


<body>

<div id="topbar"><div align="center">Hey!<div></div>
<div id="banner">sdsfsd</div>
</body>


</html>


What browser are you using?
It's the same for all browsers.

Bojangles
06-04-2008, 01:30 PM
Can you give me a screenie of what its doing? So you want the banner UNDER the header?

Gangster
06-04-2008, 01:35 PM
Can you give me a screenie of what its doing? So you want the banner UNDER the header?
Nope, i wan to know why when i make the banner 0px; from the top, it goes 0px from the bottom of the div placed before.

Bojangles
06-04-2008, 01:39 PM
Because you ended the header div :P

Want to hide these adverts? Register an account for free!