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!
CSS tables
Post new topic   Reply to topic    HTML Help Forum Index -> CSS
View previous topic :: View next topic  
Author Message
thenamesdave



Joined: 27 May 2006
Posts: 25
Location: Essex

PostPosted: Sat May 27, 2006 10:28 am     CSS tables Reply with quote

Hey all, n00b to this forum Very Happy I am having terrible trouble with CSS tables, the site looks as it should in FF but not in IE and I have no idea why! Clicky. The tables look all wrong in IE, and the validator has a hissey fit when trying to validate it because I don't know what DOCTYPE to use Crying or Very sad Thanks to all who can help!
Corey Bryant
Site Admin


Joined: 15 May 2004
Posts: 8259
Location: Castle Rock CO USA

PostPosted: Sat May 27, 2006 1:00 pm     Reply with quote



There are actually no such thing as CSS tables yet. You cn use CSS to create divides and you can use CSS to apply a format (like background color, font color, border color, wdith, height, etc) to tables. But tables are create with HTML.

The DOCTYPE goes before the <html> actually. So just change
Code:
<html>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<head>
to
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
   "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<head>
for starters.

And then you should be able to use a validator

_________________
Corey
Loud Commerce | Loud Worx | Merchant Account Blog


Last edited by Corey Bryant on Sat May 27, 2006 3:50 pm; edited 1 time in total
thenamesdave



Joined: 27 May 2006
Posts: 25
Location: Essex

PostPosted: Sat May 27, 2006 2:44 pm     Reply with quote

Hello mate, thanks for the help, although the validator now throws even more errors Confused This is seriously confusing stuff, all I want is for the tables to look like they do in FF in IE Embarassed
Corey Bryant
Site Admin


Joined: 15 May 2004
Posts: 8259
Location: Castle Rock CO USA

PostPosted: Sat May 27, 2006 3:58 pm     Reply with quote

Since you are using XHTML, yours tags have to be closed. For example,
Code:
<br>
needs to be
Code:
<br />
And
Code:
<META name="author" content="Adam Hart">
needs to be
Code:
<meta name="author" content="Adam Hart" />
This also needs to be lower case code since you are using XHTML.

Read the errors. I see one error that says that there is no closing.

Consider putting all your styles in your internal sheet instead of four.

And it looks like your applied the same class to all the tables?

Check out CSS Reference - scroll down a bit, and you will see everything that you can use on tables.

And on
Code:
border:1px outset 0080C0;
Try using
Code:
border:1px outset #0080C0;

_________________
Corey
Loud Info | Loud Worx | Merchant Account Blog
thenamesdave



Joined: 27 May 2006
Posts: 25
Location: Essex

PostPosted: Sun May 28, 2006 12:44 am     Reply with quote

Thank you Corey, its all very confusing lol, I'll have a crack at it and let you know how I get on. Many thanks once again. :]
thenamesdave



Joined: 27 May 2006
Posts: 25
Location: Essex

PostPosted: Sun May 28, 2006 2:29 am     Reply with quote

Ok Corey it has now completely reversed! It now looks perfect in IE but in FF it has no borders at all! www.basseydave.com I have also tried using DIV so that probably has had an effect on FF.
Corey Bryant
Site Admin


Joined: 15 May 2004
Posts: 8259
Location: Castle Rock CO USA

PostPosted: Sun May 28, 2006 3:12 am     Reply with quote

Did you want to check the other errors first and close a lot more of those tags?

_________________
Corey
Loud Info | Loud Worx | Merchant Account Blog
thenamesdave



Joined: 27 May 2006
Posts: 25
Location: Essex

PostPosted: Sun May 28, 2006 3:27 am     Reply with quote

WAHOOOOOOOOOOOOOOOOO!!!!!!! FINALLY DONE IT!!!!!!!!! Very Happy Thanks Corey, it now looks the same in both browsers! www.basseydave.com - Many thanks once again :]
Corey Bryant
Site Admin


Joined: 15 May 2004
Posts: 8259
Location: Castle Rock CO USA

PostPosted: Sun May 28, 2006 5:37 am     Reply with quote

Glad it all worked out - good luck with the site!

_________________
Corey
Loud Commerce | Loud Worx | Merchant Account Blog
Display posts from previous:   
Post new topic   Reply to topic    HTML Help Forum Index -> CSS 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