Help - Search - Members - Calendar
Full Version: What Am I Doing Wrong?
Zymic Webmaster Forums > Web Design & Development > Client Side Scripting > HTML and CSS
Mephiles
I'm using XHTML 1.0 Strict to make a table that contains my logo. It's ment to have a background via the CSS. The navigation bar underneath it works fine and it can be views fine in IE7, but not firefox (believe it or not). Here's the code:

HTML
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>Omega Studios</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="style.css" rel="stylesheet" type="text/css" />
</head>

<body>
<table width="100%" class="logo" cellpadding="0" cellspacing="0">
<tr>
<td><img src="images/omega_logo2.png" /></td>
</tr>
<tr>
<td>
<div id="navbar">
<ul>
<li><a href="index.php">Home</a></li>
<li><a href="index.php?page=">Downloads</a></li>
<li><a href="http://s1.zetaboards.com/Omega_Studios/">Forums</a></li>
<li><a href="index.php?page=">Gallery</a></li>
<li><a href="index.php?page=">Join</a></li>
<li><a href="index.php?page=">Contact</a></li>
</ul>
</div>
</td>
</tr>
</table>
</body>
</html>


Here's the CSS for the logo (Note: This isn't all of the CSS document):
CODE
.logo {
    background:#CC0000 url(images/omega logo_bg.png) repeat-x top;
}

Does anyone know what I'm doing wrong?
Cmain
Do you have a link to the page?

Why are you mixing tables and divs? Tables should not be used unless the page calls for an actual table. If you are just trying to get an image to repeat across the top, I would suggest putting it in the body.
Mephiles
I used a div and it works great. I've uploaded the site now: http://omegastudios.zxq.net/index.php
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2012 Invision Power Services, Inc.