Results 1 to 3 of 3

Thread: CSS or Tables (or both?)

  1. #1
    Join Date
    Aug 2007
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default CSS or Tables (or both?)

    Greetings,

    I have always used tables and CSS only for formatting text/styles...

    But not I am hearing from people that CSS is good for aligning, some claim it is better then tables.

    So this is one of my first posts here, I knew this website for a long time but signed up at the forum just recently, but I am sure that there are some advanced in web design people that know the answer.

    Let know what you think is better for aligning, or if you think to use both is better.

    I have plans to learn CSS aligning either way, but thought Id get some info as well.

  2. #2
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    Simply put, tables are not and never were designed to be used for layout. Abusing them this way was simply a hack that was used before CSS gained support. In this day and age, there are very few reasons remaining to use tables for layout, and several practical disadvantages to doing so. Tables are for tabular data, and should only be used to display tabular data -- the <table> element is meant, surprisingly enough, for rendering tables, not for structuring layouts.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  3. #3
    Join Date
    Aug 2007
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    CSS is a more effecient (if not sometimes slightly more frustrating ) solution that will clean up your code and produce more responsive results once you get the hang of it.

    avoid tables for layout as much as possible, even as tempting as it is sometimes. Good luck!

Bookmarks

Posting Permissions

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