Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Jun 4th, 2005, 1:32 PM   #1
epswing
Newbie
 
epswing's Avatar
 
Join Date: Feb 2005
Posts: 14
Rep Power: 0 epswing is on a distinguished road
unknown gap between tables

Take a look at http://www.ecsu.ca first through Internet Explorer, then through FireFox.

In FF, there's a small gap above the main menu.
In IE, there's not.

Here's the code (or you can View --> Source yourself) of the two tables. The first holds the top banner, the second holds the main menu.

<table border="0" width="100%" cellspacing="0" cellpadding="0">
	<tr>
		<td><img src="image/topbar.bmp"></td>
	</tr>
</table>
<table border="0" width="100%" height="25" cellspacing="0" cellpadding="0" bgcolor="#6379BD">
	<tr>
		<td align="center">
			<ul class="menu">
			<li class="currloc"><a href="">Home</a></li>
			<li><a href="about/">About ECSU</a></li>
			<li><a href="froshweek/">Frosh Week</a></li>
			<li><a href="services/">Services</a></li>
			<li><a href="forums/">Forums</a></li>
			<li><a href="clubs/">Clubs</a></li>
			<li><a href="photos/">Photos</a></li>
			<li><a href="pub/">Blind Duck Pub</a></li>
			</ul>
		</td>
	</tr>
</table>

Anyone know what's going on and why?

Last edited by epswing; Jun 4th, 2005 at 1:35 PM.
epswing is offline   Reply With Quote
Old Jun 4th, 2005, 8:02 PM   #2
Ooble
I eat cake for breakfast.
 
Ooble's Avatar
 
Join Date: Jul 2004
Location: In my box.
Posts: 4,434
Rep Power: 9 Ooble is on a distinguished road
Simple: if you're going to specify your document as XHTML 1.1, for god's sake, don't code in HTML.

http://validator.w3.org/check?verbos...//www.ecsu.ca/
__________________
Me :: You :: Them
Ooble is offline   Reply With Quote
Old Jun 5th, 2005, 1:07 AM   #3
epswing
Newbie
 
epswing's Avatar
 
Join Date: Feb 2005
Posts: 14
Rep Power: 0 epswing is on a distinguished road
Look, you haven't helped in the slightest. I was handed this project recently and it was really in shambles. I've just been patching up holes as I go along, but I'm no superstar.

I was hoping maybe some superstar could identify this specific problem I've having and, y'know, be even little helpful instead of throwing a validator at me.
epswing is offline   Reply With Quote
Old Jun 5th, 2005, 1:32 AM   #4
uman
Expert Programmer
 
Join Date: Dec 2004
Posts: 794
Rep Power: 4 uman is on a distinguished road
The validator is a great help. Fix all the problems that it raises, and you may well find that your site is fixed.

Oh, by the way, is that avatar from Freespace?
uman is offline   Reply With Quote
Old Jun 5th, 2005, 2:46 AM   #5
LiveWire
Newbie
 
LiveWire's Avatar
 
Join Date: Jun 2005
Location: Flordia
Posts: 5
Rep Power: 0 LiveWire is on a distinguished road
Epswing, after looking at your source. The problem is rather simple. There are 2 ways to fix this. you have this at your header:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">

Which is telling the server to read the following code as valid XHTML 1.1. Which your code is is not valid XHTML 1.1. So heres what you can do.

Option 1: recode everything to valid XHTML 1.1 (Recommended)

Option 2: Replace the <!DOCTYPE line with the following code (The Easy Way Out :p)

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

That will slove your problem.
__________________
I had a monumental idea this morning, but I didn't like it.
LiveWire is offline   Reply With Quote
Old Jun 5th, 2005, 10:16 AM   #6
epswing
Newbie
 
epswing's Avatar
 
Join Date: Feb 2005
Posts: 14
Rep Power: 0 epswing is on a distinguished road
Quote:
Originally Posted by uman
Oh, by the way, is that avatar from Freespace?
Indeed it is. Remember the Epsilon Wing? They kicked some serious ass.


Quote:
Originally Posted by LiveWire
Epswing, after looking at your source. The problem is rather simple. There are 2 ways to fix this. you have this at your header:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">

Which is telling the server to read the following code as valid XHTML 1.1. Which your code is is not valid XHTML 1.1. So heres what you can do.

Option 1: recode everything to valid XHTML 1.1 (Recommended)

Option 2: Replace the <!DOCTYPE line with the following code (The Easy Way Out :p)

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

That will slove your problem.
Thanks muchly. Very much the easy way out, I agree. I don't think I'm losing any current functionality though. And to you OMGVALIDATOR people, I do understand how important a standard is, and having a validator that points out each mistake you make can be extremely invaluable...however, I just don't have that kind of time, and if it works just as well using HTML 4, so be it.
epswing is offline   Reply With Quote
Old Jun 5th, 2005, 10:28 AM   #7
Ooble
I eat cake for breakfast.
 
Ooble's Avatar
 
Join Date: Jul 2004
Location: In my box.
Posts: 4,434
Rep Power: 9 Ooble is on a distinguished road
Quote:
Originally Posted by epswing
Look, you haven't helped in the slightest. I was handed this project recently and it was really in shambles. I've just been patching up holes as I go along, but I'm no superstar.

I was hoping maybe some superstar could identify this specific problem I've having and, y'know, be even little helpful instead of throwing a validator at me.
I was hoping you would guess you should use the HTML 4.0 doctype. Either way, as long as you've learnt something, I'm happy.
__________________
Me :: You :: Them
Ooble is offline   Reply With Quote
Old Jun 6th, 2005, 2:54 AM   #8
Berto
Programming Guru
 
Join Date: Aug 2004
Posts: 1,022
Rep Power: 6 Berto is on a distinguished road
Send a message via AIM to Berto Send a message via MSN to Berto
I love the validator and the eronious errors it gives me.
__________________
"Put your hand on a hot stove for a minute, and it seems like an hour. Sit with a pretty girl for an hour, and it seems like a minute. THAT'S relativity."

- Albert Einstein
Berto is offline   Reply With Quote
Old Jun 6th, 2005, 2:55 AM   #9
uman
Expert Programmer
 
Join Date: Dec 2004
Posts: 794
Rep Power: 4 uman is on a distinguished road
Yep, freespace rules and so does epsilon wing.
uman is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 12:11 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC