HTML - Firefox compatibility problems

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
Yonderknight
Forum Commoner
Posts: 31
Joined: Sun Jun 13, 2004 6:51 pm

HTML - Firefox compatibility problems

Post by Yonderknight »

Hi everyone, I don't post here much but i have a pretty big problem.

I recently finished a website for a friend. The front-page is somewhat blog/forum styled, and I'm using a tabular layout. The titlebar has a background that has a height of 29px, and I set the height of that cell and every other cell in that row to height="29".

The problem is that it works just like it should in Internet Explorer, but in firefox, it seems to ignore the height specifications and the background ends up tiling 3 times.

You can find the site here:
http://www.c-41productions.com/

Also you can find screenshots of Internet Explorer and Firefox versions here:
http://www.c-41productions.com/Henry/Layout/Firefox.jpg
http://www.c-41productions.com/Henry/Layout/IE.jpg

Any help will be greatly appreciated!
matthijs
DevNet Master
Posts: 3360
Joined: Thu Oct 06, 2005 3:57 pm

Post by matthijs »

I got a bit nauseous looking at that code, but here's the solution anyway:

Code: Select all

.TEXTbloghead{
	font-family:Arial;
	color:white;
	font-size:25px;
        margin:0;
}
The <p class="TEXTbloghead"> was pushing things up and down. You might also declare the line-height.
Yonderknight
Forum Commoner
Posts: 31
Joined: Sun Jun 13, 2004 6:51 pm

Post by Yonderknight »

Ooh! Should've thought of that before. Sorry about the code :oops:. I like it organized that way (easier for me).

Thanks a ton!
matthijs
DevNet Master
Posts: 3360
Joined: Thu Oct 06, 2005 3:57 pm

Post by matthijs »

Glad to be of help. Was not talking about the organization of the code by the way.. just all the tables and code bloat etc. But no worries.. :wink:
Yonderknight
Forum Commoner
Posts: 31
Joined: Sun Jun 13, 2004 6:51 pm

Post by Yonderknight »

Code bloat? Can you provide some examples and some advice to clean up? I'd really appreciate it, but you don't have to.
Thanks again =).
matthijs
DevNet Master
Posts: 3360
Joined: Thu Oct 06, 2005 3:57 pm

Post by matthijs »

Of course I can. Go to your editor, [CTRL]+[H] (that's replace in mine), "table" -> ""

:)

Just joking. The bloat is all the tables and inline styling. Have a meeting now so don't have the time to help you at this moment. Maybe later.
User avatar
RobertGonzalez
Site Administrator
Posts: 14293
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

Post by RobertGonzalez »

Kill the inline styles. That makes it easier to update and less bloaty.
Post Reply