Old 04-12-2007, 19:03   #1 (permalink)
P&R
Registered User
 
P&R's Avatar
 
Join Date: Nov 2007
Location: Nottinghamshire
Posts: 34
CSS & Tables - Oooops!

I admit - I did this one the wrong way. Well, that is a matter of opinion I suppose, but when I design a site I look at it in IE6 or IE7 as I am putting everything together. Then I look at it in Firefox and of course the site looks like it's been built by an idiot (be gentle with me here!).

(Sorry - edited out cos Google is picking up this post) It is still under construction btw.

I realise what I have done but no matter how and where I resize the widths and the columns I cannot get it quite right.

In future I will monitor any construction in Firefox first, then IE and maybe Opera too.

Does anybody else have this problem?

Cheers

John

Last edited by P&R : 24-12-2007 at 20:00.
  Reply With Quote
Old 04-12-2007, 19:16   #2 (permalink)
pgo
Senior Member
 
Join Date: Jan 2005
Posts: 12,340
Shouldn't be using tables to lay out a site anyway. That's not what they're for.
  Reply With Quote
Old 04-12-2007, 20:43   #3 (permalink)
P&R
Registered User
 
P&R's Avatar
 
Join Date: Nov 2007
Location: Nottinghamshire
Posts: 34
Hello Patrick.

Thanks for your reply. You say I shouldn't be using tables, but is this not just another way to position the content? Perhaps tables and CSS should not be mixed.

Surely it is a case of getting the columns to add up to the overall page width as set in the css file? The problem seems to be that there are too many columns and width settings which are fighting against each other. My brain (cell) is finding it rather difficult to sort it all out.

Cheers

John
  Reply With Quote
Old 04-12-2007, 20:49   #4 (permalink)
Tom_E
Whippet Botherer™
 
Tom_E's Avatar
 
Join Date: Jan 2007
Location: Kent, England
Posts: 1,826
Tables are used for tabular data.

Use CSS for layout and positioning.

This site may help you:

positioniseverything

Also having 39 HTML errors on your home page may not be helping much.
__________________
  Reply With Quote
Old 04-12-2007, 21:47   #5 (permalink)
Shiro
shiro
 
Shiro's Avatar
 
Join Date: Aug 2007
Location: Yokohama, Japan
Posts: 3,066
Quote:
Thanks for your reply. You say I shouldn't be using tables, but is this not just another way to position the content?

Its a way. That doesn't mean its a good way.
  Reply With Quote
Old 04-12-2007, 22:36   #6 (permalink)
herkalees
Semantics, yay.
 
herkalees's Avatar
 
Join Date: Nov 2005
Location: Salem, Massachusetts
Posts: 1,146
You're right in thinking it was done the wrong way. You're also right to decide you'll monitor in Firefox first, IE6/7 after.

Instead of wasting valuable time getting your tables to work, spend that same time writing the layout using the more common <div>s and accompanying CSS.

To hammer out your tables until they look correct can be compared to beating your wife until she becomes more attractive.
__________________
  Reply With Quote
Old 04-12-2007, 22:49   #7 (permalink)
illvibe
say werd.
 
illvibe's Avatar
 
Join Date: Oct 2004
Location: Japan
Posts: 1,293
Quote:
Originally Posted by herkalees
To hammer out your tables until they look correct can be compared to beating your wife until she becomes more attractive.

Well done. That's a keeper.
  Reply With Quote
Old 04-12-2007, 23:59   #8 (permalink)
smoseley
Registered User
 
Join Date: Aug 2007
Posts: 95
Tables are "old-school". I've been designing websites for over 10 years, and I started out with tables (and :cough:, frames, I admit it). Today, there's no excuse to use tables for layout. Divs + CSS can do pretty much everything tables can do, and are valid "semantic" HTML, and preferred by search engines.
  Reply With Quote
Old 05-12-2007, 09:24   #9 (permalink)
P&R
Registered User
 
P&R's Avatar
 
Join Date: Nov 2007
Location: Nottinghamshire
Posts: 34
Thanks very much all for your valuable help with this. I must get myself moved up into the new school Smosely.

Meanwhile I will try and sort out the mess I have created.

Herkalees - you're wicked! ;0)

Thanks for the link Tom_E

John
  Reply With Quote
Old 05-12-2007, 14:48   #10 (permalink)
P&R
Registered User
 
P&R's Avatar
 
Join Date: Nov 2007
Location: Nottinghamshire
Posts: 34
It's 90% better in Forefox now. "Best to learn from experience", as they say.

Welcome to NCA UK | Home This goes live in a day or two so just enough to time to get things tweaked.

Phew!

Thanks for your help. That Position Is Everything is very useful!
  Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search


Contact Us - Web Design Forums - Archive - Top
Search Engine Optimization by vBSEO 3.0.0 RC8