2 replies [Last post]
paCkeTroUTer
paCkeTroUTer's picture
Offline
Enthusiast
Melbourne, Australia
Last seen: 6 years 23 weeks ago
Melbourne, Australia
Timezone: GMT+10
Joined: 2003-06-27
Posts: 241
Points: 2

I am trying to re-design my Table only site into a pure CSS site. I started out with the following classes:

.header {
	background-color: #99CCFF;
	margin: 0px;
	padding: 0px;
	left: 0px;
	top: 0px;
	height: 90px;
	width: 100%;
	position: absolute;
}
.logo {
	background-attachment: scroll;
	background-color: #99CCFF;
	background-image: url(../images/portal/logo.gif);
	background-repeat: no-repeat;
	background-position: left center;
	height: 90px;
	width: 144px;
	position: absolute;
	left: 0px;
	top: 0px;
	margin: 0px;
	padding: 0px;
}
.techsatcomputers {
	background-attachment: scroll;
	background-color: #99CCFF;
	background-image: url(../images/portal/techsatcomputers_logo.gif);
	background-repeat: no-repeat;
	background-position: left top;
	position: absolute;
	top: 0px;
	height: 90px;
	width: 160px;
	left: 144px;
	margin: 0px;
	padding: 0px;
}

The old site can be seen here: http://www.techsatcomputers.com/index1.php and the New site structure can be seen here http://www.techsatcomputers.com/index2.htm
However the new structure leaves a gap on the far right. What am I not doing right ? Is this the right approcah I have taken ?

Edit... Tested on IE6

http//melbourne.ug.php.net

dJomp
dJomp's picture
Offline
Enthusiast
Last seen: 3 years 37 weeks ago
Joined: 2003-03-23
Posts: 422
Points: 0

Simple structure leaves margin

Try setting the margins in the BODY tag to 0... I think the DIV is showing up as 100% of the BODY area, but there could well be margins associated with it. (Just a guess, untested...)

You know you're a geek when you try to shoo a fly away from the monitor with your cursor.

paCkeTroUTer
paCkeTroUTer's picture
Offline
Enthusiast
Melbourne, Australia
Last seen: 6 years 23 weeks ago
Melbourne, Australia
Timezone: GMT+10
Joined: 2003-06-27
Posts: 241
Points: 2

Simple structure leaves margin

Smile Now why didn't I think about that. I have been waiting for more than a day for an answer and it turned out to be something as simple as that. Thanks dJomp for the help.

Jeffery

http//melbourne.ug.php.net