Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Should I use a table or CSS?

Status
Not open for further replies.

nevets2001uk

IS-IT--Management
Jun 26, 2002
609
GB
I'm working on a project which is based around full CSS Pages. So far my entire layout is controlled by CSS.

I've just reached the point where I'm adding a form for user information to be entered. This form has a number of fields. I'm laying this form out using a table as it is practically a simple grid (i.e below)

TITLE TEXTBOX
TITLE TEXTBOX TITLE TEXTBOX
TITLE TEXTBOX TITLE TEXTBOX

I just wanted to check that a table should be used for this simple layout and that it wouldn't be expected for this layout to be done using complex CSS?

Cheers!

Steve Gordon
 
Hmmm.... Well I suppose you could argue that a form is a kind of data table in which the end-user enters the data, in which case a <table> is the best semantic choice. It's certainly going to be one helluva lot easier to lay it out with a table than any other way (IMO).

Frankly, unless you've got any particular reason to appease CSS purists, just use a <table> and don't lose any sleep over it!

-- Chris Hunt
 
Thanks. Yeah think I'm going to go with a table for this one, simply because after thinking it over for a short time, laying out what could be up to 30 fields using CSS would be too much of a pain.

I've been trying to stick strictly to CSS for layout and appearance to make re-designing / modifying the pages easier in the future and as a self-teaching experience for CSS but I can't see that this form being laid out out using a table will make a lot of difference.

Cheers for the advice!

Steve Gordon
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top