Submit Your Article Forum Rules

Results 1 to 8 of 8

Thread: css vs table

  1. #1
    Junior Member DT's Avatar
    Join Date
    Jan 2004
    Posts
    18

    css vs table

    Hi,

    Just wondering how can table be replaced by css... Need some ideas?

    I have a web site with about 500 pages, they are not well coded. Recently, I started to convert them to HTML 4. Is it a good idea to convert to XHTML? How about browser compatibility?

    Regards,
    Deependra b. Tandukar
    --
    Deependra b. Tandukar
    'Everyone is ignorant, only the subject is different'

  2. #2
    Senior Member vwebworld's Avatar
    Join Date
    Jul 2003
    Posts
    466
    Eventhough I use CSS, I think tables still have
    their place. I find tables easy (for me) to use to
    "control" the placement of various items on a web page.

    Here are a couple of links for CSS / Table info:
    http://glish.com/css/
    http://www.w3.org/TR/REC-CSS2/tables.html#q1
    http://www.projectseven.com/tutorials/css_t/

    ~ROland

  3. #3
    Senior Member
    Join Date
    Aug 2003
    Posts
    765
    Now is not the time to replace table elements for CSS. The only real support is from IE on PC. Other than that, there are issues with all other browsers and platforms regarding CSS as a layout language. Use it for color and design, fonts and links, but leave the layout to the tables.

    Give it a couple years. Maybe the rest of the browsers will come into compliance; but until then you are looking at nothing but heartache.

    My .02 cents.
    Scott Brinkerhoff - Art of Zen Studios
    Web Design I Design Monk
    © 2000-forever - All rights reserved by me - SO THERE!!

  4. #4
    Senior Member splinter's Avatar
    Join Date
    Jul 2003
    Posts
    118
    Huh??? I hope you were joking there.

    IE6 has the buggiest CSS support out of all the latest browsers. Even the CSS1 is buggy. Don't tell me about how many problems I've had with the float property in IE.

    Also, strange things can happen if you put width and padding in the same class.

    On the other hand, Netscape 7 and Opera 7 work like dreams. Everything I want CSS to do works perfectly with them.

    Also, tables are evil for design. Take a look at tutorial 2 in the site design section (you may even notice my pretty face :P).

    Also, it's quite easy to create great looking designs in CSS. [showing off]Take a look here for a nice (incomplete) design. Take a look at the code if you want. Only 1 table and that's for the calendar.[/showing off]

    It also allows to customise your site very easily. I've completly changed the look of the above site in a matter of mins.

  5. #5
    Senior Member
    Join Date
    Mar 2004
    Posts
    109
    The only real support is from IE on PC
    How so? IE6 does support css-p about as well as any browser (if you take a few quirks into consideration), but I don't see that it does any better than Mozilla. What advantages does IE offer?


    Some resources for DT:
    Joe Gillespie's browser test
    BrainJar's CSS-P page
    Craig Saila's CSS v Table article
    Jeff Zeldman's ALA article
    Chris Collins
    crcdesign.net

  6. #6
    Junior Member
    Join Date
    Apr 2004
    Posts
    3

    If Not Now, When???

    I think that both Tables & CSS positioning have a place in today's world. I prefer doing mostly tableless designs...but I use tables when they are more appropriate for my audience of endeavor. I think it is misleading to say that it is not "time" yet for tableless layouts. If not now, when? Don't be left behind because you are scared to embrace newer technologies. Check out the following article by Al Sparber:

    Clarence The Pony

    Also visit The CSS Zen Garden for a terrific display of what can be accomplished with CSS. And be sure to check out my design submission entitled Happy Hour.

    Cheers,
    Erica

  7. #7
    Senior Member vwebworld's Avatar
    Join Date
    Jul 2003
    Posts
    466
    To quote that article (emphasis added):
    There's nothing inherently wrong with using tables to layout a web page. They are great for rapidly deployment sites for clients who need to support a wide range of older browsers, or in any site that needs to display organized tabular data. Tables are not evil. But in terms of web page design, nothing is absolute. The target is constantly moving... but not in circles. To only use tables is as wrong a decision as to never use tables. Not to embrace CSS, could be tantamount to a slow professional suicide
    There is some beautiful stuff created with CSS
    ala Zen Garden... but "tableless" web pages are not
    for everyone nor do all browsers support CSS (CSS2+).

    This subject always seems to provoke the extreme
    views of tables bad / css good and CSS s**ks / tables
    rule.

    In any case, it appears that Deependra's post has
    been answered with the various CSS links already posted :-)

    "Peace out..." "Attica! Attica!" "you talkin to me?"
    Whoa, sorry got carried away there....

    ~Roland

  8. #8
    Senior Member
    Join Date
    Jul 2003
    Posts
    1,332
    The one thing I prefer of CSS in comparison to tables, is the versatility of design without overloading your page with images & reams of code. Tables aren't evil, I still use them for appropriate content layout, but they just arent as versatile as CSS IMO.

    In reference to buggy, I find IE the buggiest. I can design a site & it look faultless in Firefox, Mozilla & Opera...then I open IE and its search for the problem. To combat this I have a standard set of attributes I put with each class & ID to overcome this problem to the greater degree. I found that if I tell the browser 'exactly' what I want & what I dont want, I can cover most problems, not all. I've tried many 'quirk' solutions, and have found none that work on all.

    But in answer to original question....
    Is it a good idea to convert to XHTML? How about browser compatibility?
    I'll give the same answer I would give clients... there are problems associated with converting & not converting. You have to balance out whether you are going for longevity or backward compatability. You also have to take into consideration your target audiences. i.e. Many educational institutions run Macs, and Safari seems to be the only browser that has a higher degree of compatability...so then I would consider not using XHTML for anything where they might be a focus group. If its for your own site..I say 'go for it'! XHTML/CSS can be a lot of fun to design with.
    [url returns 404 - removed by mod 07/11]
    It' time for Progressive Web & IT Development!

Similar Threads

  1. Table Align to table
    By sysop9999 in forum Graphics & Design Discussion Forum
    Replies: 3
    Last Post: 11-10-2005, 10:00 AM
  2. To div or to table, what would you use?
    By dharrison in forum Graphics & Design Discussion Forum
    Replies: 7
    Last Post: 11-08-2005, 06:53 AM
  3. To Table or Not to Table ...
    By WebErika in forum Graphics & Design Discussion Forum
    Replies: 16
    Last Post: 06-20-2005, 08:37 AM
  4. Table settings
    By redstarfcs in forum Graphics & Design Discussion Forum
    Replies: 2
    Last Post: 08-14-2004, 10:58 AM
  5. Do you use <div> or <table>
    By drummin in forum Graphics & Design Discussion Forum
    Replies: 3
    Last Post: 10-03-2003, 09:23 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •