Log in

View Full Version : coding problem



Colin-Roberts
21-06-2007, 12:08 PM
http://www.colin.duopower.net/index.php

its set so both images go to 100% but neither of them are.

index

<html>
<head>
<title></title>
<link rel="stylesheet" type="text/css" href="http://www.colin.duopower.net/css.css" />
</head>
<body>
<div id="header"></div>
<div id="header2"></div>
</body>


</html>


css file


a:link { color: #000000; text-decoration: none; }
a:visited { color: #000000; text-decoration: none; }
a:hover { color: green; text-decoration: none; font-weight: bold; }

#body {
background-color: white;
}

#header {
width: 100%;
height: 140px;
background: url("/images/header.PNG") repeat-x;
}

#header2 {
width: 100%;
height: 140px;
background: url("/images/header2.PNG") repeat-x;
}


Moved by opensourcehost (Forum Moderator) from Web Designing: Please post in the correct forum next time, thanks :).

Highjacker-x
21-06-2007, 12:51 PM
Nothing seems to look out of place in either HTML or both CSS File.

Ini
21-06-2007, 01:24 PM
Nothing seems to look out of place in either HTML or both CSS File.

Why post if you can't help?

He knows that nothing 'looks' wrong otherwise he'd change it

craigg.
21-06-2007, 02:01 PM
margin-left: 0px;
margin-right: 0px;

Try that.

Splinter
21-06-2007, 02:04 PM
just add margin: 0px;

Blob
21-06-2007, 03:58 PM
a:link { color: #000000; text-decoration: none; }
a:visited { color: #000000; text-decoration: none; }
a:hover { color: green; text-decoration: none; font-weight: bold; }

#body {
background-color: white;
}

#header {
background-image:url( "images/header.PNG" );
width: 99%;
height: 65px;
padding-top: 10px;
padding-left: 1%;
}

#header2 {
background-image:url( "images/header2.PNG" );
width: 99%;
height: 65px;
padding-top: 10px;
padding-left: 1%;
}

Invent
21-06-2007, 04:00 PM
a:link { color: #000000; text-decoration: none; }
a:visited { color: #000000; text-decoration: none; }
a:hover { color: green; text-decoration: none; font-weight: bold; }

#body {
background-color: white;
margin: 0px;
}

#header {
width: 100%;
height: 140px;
background: url("/images/header.PNG") repeat-x;
}

#header2 {
width: 100%;
height: 140px;
background: url("/images/header2.PNG") repeat-x;
}

L?KE
21-06-2007, 07:06 PM
It's

body {
margin: 0px;
padding: 0px;
}

Colin-Roberts
21-06-2007, 07:48 PM
i tryed everyone one noone worked

Colin-Roberts
21-06-2007, 08:24 PM
nvm got it to work now how do i make it so the right side is the same spacing from the top as the left side instead of the right side moving down with the content

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