html/css help

swantonbomb88

New Member
Messages
66
Reaction score
0
Points
0
well im having a problem, im trying to code something and this keeps happening:
ffproblem2mm4.png

thats in firefox, this is in internet explorer:
ieproblem2ut0.png

can someone please help me?
plus rep for whoever

heres the css/html codes im using:
HTML:
body {
	margin:0px;
	background-color: #6d3b00;
}
img {
	border:0px
}
a.home {
background: url(images/home.jpg) no-repeat;
background-position: 0px 0px;
width:81px;
height:30px;
display:block;
}
a.home:hover {
background: url(images/home_hover.jpg) no-repeat;
background-position: 0px 0px;
width:81px;
height:30px;
display:block;
}
a.forums {
background: url(images/forums.jpg) no-repeat;
background-position: 0px 0px;
width:63px;
height:30px;
display:block;
}
a.forums:hover {
background: url(images/forums_hover.jpg) no-repeat;
background-position: 0px 0px;
width:63px;
height:30px;
display:block;
}
a.about {
background: url(images/about.jpg) no-repeat;
background-position: 0px 0px;
width:45px;
height:30px;
display:block;
}
a.about:hover {
background: url(images/about_hover.jpg) no-repeat;
background-position: 0px 0px;
width:45px;
height:30px;
display:block;
}
a.trackmania {
background: url(images/trackmania.jpg) no-repeat;
background-position: 0px 0px;
width:98px;
height:30px;
display:block;
}
a.trackmania:hover {
background: url(images/trackmania_hover.jpg) no-repeat;
background-position: 0px 0px;
width:98px;
height:30px;
display:block;
}
a.videos {
background: url(images/myvids.jpg) no-repeat;
background-position: 0px 0px;
width:86px;
height:30px;
display:block;
}
a.videos:hover {
background: url(images/myvids_hover.jpg) no-repeat;
background-position: 0px 0px;
width:86px;
height:30px;
display:block;
}
a.graphics {
background: url(images/graphics.jpg) no-repeat;
background-position: 0px 0px;
width:74px;
height:30px;
display:block;
}
a.graphics:hover {
background: url(images/graphics_hover.jpg) no-repeat;
background-position: 0px 0px;
width:74px;
height:30px;
display:block;
}
a.contact {
background: url(images/contact.jpg) no-repeat;
background-position: 0px 0px;
width:141px;
height:30px;
display:block;
}
a.contact:hover {
background: url(images/contact_hover.jpg) no-repeat;
background-position: 0px 0px;
width:141px;
height:30px;
display:block;
}
.boxmid {
	background:url(images/bgmid.jpg) repeat-y;
	width:588px;
	color:#fb8807;
	font-family:Arial;
}
.boxbottom {
	background:url(images/bgbottom.jpg) no-repeat;
	width:588px;
	height:45px;
}
.adspace {
	background:url(images/adspace.jpg) no-repeat;
	width:468px;
	height:60px;
}
p {
	color: #fb8807;
}
h1 {
	color: #fb8807;
	size:35px;
}
 hr {
  border: 0;
  width: 228px;
  background:url(images/hr.jpg);
}
HTML:
<html>
<head>
<link rel="stylesheet" type="text/css" href="style.css">
<title>Swanton's Site - Home</title>
</head>
<body>
<p>
<center>
<img src="http://forums.x10hosting.com/images/logo.jpg">
<table cellpadding="0px" cellspacing="0px">
<tr>
<td><a class="home" href="index.htm"></a></td>
<td><a class="forums" href="forums"></a></td>
<td><a class="about" href="about.htm"></a></td>
<td><a class="trackmania" href="trackmania.htm"></a></td>
<td><a class="videos" href="myvids.htm"></a></td>
<td><a class="graphics" href="graphics.htm"></a></td>
<td><a class="contact" href="contact.htm"></a></td>
</tr>
</table>
<div class="boxmid">
<div class="adspace">
<script type="text/javascript" src="http://x10hosting.com/adserve.js?corporate"></script>
</div>
<h1>TEST</h1>
TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT 
TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT
TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT 
TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT
TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT 
TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT
TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT 
TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT
TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT 
TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT
<hr>
</div>
<div class="boxbottom">
</div>
</center>
<center>
<p>
&copy; Copyright 2008
</center>
</center>
</body>
</html>

and waht it should look like:
previewhb6.jpg
 
Last edited:

VPmase

New Member
Messages
914
Reaction score
0
Points
0
You have two <center> tags but only 1 </center> tag...

HTML:
<html>
<head>
<link rel="stylesheet" type="text/css" href="style.css">
<title>Swanton's Site - Home</title>
</head>
<body>
<p>
<center>
<img src="http://forums.x10hosting.com/images/logo.jpg">
<table cellpadding="0px" cellspacing="0px">
<tr>
<td><a class="home" href="index.htm"></a></td>
<td><a class="forums" href="forums"></a></td>
<td><a class="about" href="about.htm"></a></td>
<td><a class="trackmania" href="trackmania.htm"></a></td>
<td><a class="videos" href="myvids.htm"></a></td>
<td><a class="graphics" href="graphics.htm"></a></td>
<td><a class="contact" href="contact.htm"></a></td>
</tr>
</table>
<div class="boxmid">
<h1>TEST</h1>
TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT 
TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT
TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT 
TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT
TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT 
TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT
TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT 
TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT
TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT 
TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT
<hr>
</div>
<center>
<div class="boxbottom">
</div>
</center>
<p>
&copy; Copyright 2008
</center>
</body>
</html>
 
Last edited:

swantonbomb88

New Member
Messages
66
Reaction score
0
Points
0
that didnt really help very much, im trying to fix the between the bottom of the box and the middle, and the gap between the buttons and the middle, and also i want to make the text in the box not centered...
Edit:
can anyone please please please help?
Edit2:
I added the ads and it somehow fixed the button gap:
ffproblem2mm4.png

IE:
ieproblem2ut0.png
 
Last edited:

Frakturedmod

New Member
Messages
18
Reaction score
0
Points
0
This probably won't work, and I didn't read much of your code but it's worth a shot. All I did was move the hr tag.
HTML:
<html>
<head>
<link rel="stylesheet" type="text/css" href="style.css">
<title>Swanton's Site - Home</title>
</head>
<body>
<p>
<center>
<img src="http://forums.x10hosting.com/images/logo.jpg">
<table cellpadding="0px" cellspacing="0px">
<tr>
<td><a class="home" href="index.htm"></a></td>
<td><a class="forums" href="forums"></a></td>
<td><a class="about" href="about.htm"></a></td>
<td><a class="trackmania" href="trackmania.htm"></a></td>
<td><a class="videos" href="myvids.htm"></a></td>
<td><a class="graphics" href="graphics.htm"></a></td>
<td><a class="contact" href="contact.htm"></a></td>
</tr>
</table>
<div class="boxmid">
<h1>TEST</h1>
TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT 
TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT
TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT 
TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT
TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT 
TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT
TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT 
TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT
TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT 
TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT
</div>
<center>
<hr> <div class="boxbottom">
</div>
</center>
<p>
&copy; Copyright 2008
</center>
</body>
</html>
 
Top