HTML Tutorial


 Forum HomeForum Home   FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
RegisterRegister - Not registered yet? Got something to say? Join HTML Code Tutorial!
Incorrect table appearance
Post new topic   Reply to topic    HTML Help Forum Index -> HTML Table
View previous topic :: View next topic  
Author Message
xendistar



Joined: 08 May 2007
Posts: 30

PostPosted: Sun Jun 24, 2007 6:54 am     Incorrect table appearance Reply with quote

I have a table on my web site which appears correctly in Firefox but when viewed in Internet Explorer it does not. In each cell there is either a star (*) or nothing. In Internet Explorer there are only borders around cells that have a * in them. I have searched but can not find the correct code to enter to correct this problem.

The page can be viewed here:

http://www.windfreaks.co.uk/linkman.php

Any suggestions??

Regards

Tim
PayneLess Designs



Joined: 28 Feb 2007
Posts: 1210
Location: Biloxi, MS

PostPosted: Sun Jun 24, 2007 8:20 am     Reply with quote

You may be using the wrong document type for the elements you are trying to use. Your page has 14 serious errors and 1 minor. I would suggest you validate your page at W3C.org's Validation site and correct all errors. Your CSS only had one problem:

Quote:

File not foundhttp://www.windfreaks.co.uk/../images/BrightSide.css: Bad Request


You're probably putting IE in Quirks mode and it is parsing your page the best it can with the information provided. Try correcting all errors and viewing in IE again. Post back how it goes.

Ron
xendistar



Joined: 08 May 2007
Posts: 30

PostPosted: Sun Jun 24, 2007 11:19 am     Reply with quote

OK I have gone through the page and corrected the ones I can but I have now hit a wall, I can't understand what the hell the error is telling me, there are currently 4 errors

Error 1 line 36, I am not sure what to do with this as this is code produced by my hosting company to produce the link to the contact form, changing that will probably cause the form not to work.

Error 2 line 48, what am I supposed to do with this, I have taken the "/" out but that made no difference

Error 3 & 5 what exactly is the error

Why can't they just put the error in plain english??

Tim
PayneLess Designs



Joined: 28 Feb 2007
Posts: 1210
Location: Biloxi, MS

PostPosted: Sun Jun 24, 2007 4:22 pm     Reply with quote

LOL Yeh it would be nice to have better explanation, but the w3c.org expect you to research what they are telling you. The error on line 36 refers to the fact that you are using an XHTML document type and that does not allow caps for tags and attributes without defining those. Try using just a strict document type or transitional one. See Doc Types.

Error 48 is a link and is not allow where you put it. the <link> tag goes between the <head> </head> tags. Move the whole thing there. It would be wrong even for a transitional doc type.

Errors 27, 187 205 is a <div> tag not closed. This one ( <div id="footer"> ) seems not to be closed. Count your opening and closing tags.

Lot of times a previous error will cause a cascade effect when corrected.

Ron
xendistar



Joined: 08 May 2007
Posts: 30

PostPosted: Mon Jun 25, 2007 11:39 am     Reply with quote

OK I have solved all bar one of the errors which is the ISP supplied link with the capitals in it.

But it has made no difference to the layout in IE (and I don't think the above is causing the problem). ANy other suggestions??

Tim
PayneLess Designs



Joined: 28 Feb 2007
Posts: 1210
Location: Biloxi, MS

PostPosted: Mon Jun 25, 2007 1:08 pm     Reply with quote

Hi Tim:

OK. Thanks for taking care of those coding problems. The one left is only because of the doc type and can be ignored for now as, as you said, it is not causing the table problem. I'll look at your layout more in depth and get back to you.

Ron
PayneLess Designs



Joined: 28 Feb 2007
Posts: 1210
Location: Biloxi, MS

PostPosted: Mon Jun 25, 2007 2:49 pm     Reply with quote

Is this what you want for your tables:

Tim's Page

Ron
xendistar



Joined: 08 May 2007
Posts: 30

PostPosted: Tue Jun 26, 2007 10:21 am     Reply with quote

Thats it Ron, I have not had time to study the code yet, but I will do and see where the differences are.

Thanks for your help

Tim
PayneLess Designs



Joined: 28 Feb 2007
Posts: 1210
Location: Biloxi, MS

PostPosted: Tue Jun 26, 2007 10:43 am     Reply with quote

Added stuff on your style sheet mostly, but cleaned up the other page. It is as an html page so you will have to do want you can with it code wise. I have both files in zipped format, but this forum doesn't allow adding attachments to a post.

Here's what's on the CSS:

Code:
/* Added by PayneLessDesigns 6/25/2007 */
table { border: 2px solid #c0c0c0; padding: 25px; margin: 2px; width: 500px; }
td { border: 2px solid #c0c0c0; }


I removed anything from your table tag and just had this left:

Code:
<table summary="">


Your empty td tags need this:

Code:
<td>&nbsp;</td>


Think that's all the changes I made.

Ron
PayneLess Designs



Joined: 28 Feb 2007
Posts: 1210
Location: Biloxi, MS

PostPosted: Tue Jul 24, 2007 2:46 pm     Reply with quote

Take it you have this solved by now?

Ron
xendistar



Joined: 08 May 2007
Posts: 30

PostPosted: Thu Jul 26, 2007 7:56 am     Reply with quote

My apologies for not coming back to you.

Yes it is fixed, in fact all I needed to do was to add the

<td>&nbsp;</td>

in all the empty cells and the table displayed correctly.

Thanks for the help and again apologies for not confirm your suggestions worked

Tim
PayneLess Designs



Joined: 28 Feb 2007
Posts: 1210
Location: Biloxi, MS

PostPosted: Thu Jul 26, 2007 1:31 pm     Reply with quote

Thanks Tim for posting back that it did work for you. Now I can delete the email I got out of my Pending file. Smile

Ron
JulesB



Joined: 27 Feb 2008
Posts: 1

PostPosted: Wed Feb 27, 2008 5:15 pm     Re: Incorrect table appearance Reply with quote

xendistar wrote:

The page can be viewed here:
http://www.windfreaks.co.uk/linkman.php
Any suggestions??
Regards
Tim


Tim, I realize this is from 2007, but visited your site and want to let you know that you should correct the spelling of the word 'explanetary' to 'explanatory'. Sorry, don't mean to nitpik, but looks more professional if there aren't mis-spellings. Smile

I'm having the same problem you were with IE, so will continue on now and read the rest of this topic.

BTW, like your site.

Jules
Display posts from previous:   
Post new topic   Reply to topic    HTML Help Forum Index -> HTML Table All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
HTML Help Archive
Powered by phpBB © 2001, 2005 phpBB Group
HTML Help topic RSS feed 

 
HOSTING / DESIGN
MAKE MONEY

Home
  |   Tutorials   |   Forum   |   Quick List   |   Link Directory   |   About
Copyright ©1997-2002 Idocs and ©2002-2007 HTML Code Tutorial