SitePoint Sponsor

User Tag List

Results 1 to 24 of 24

Thread: CSS or Tables?

  1. #1
    SitePoint Enthusiast
    Join Date
    Oct 2008
    Location
    Philippines
    Posts
    38
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    CSS or Tables?

    I usually create my websites using CSS. However, I was assigned to redesign two websites for my boss, and both have tables all over. Should I leave the tables as it is, or replace it with CSS? One is for our city government and the other is for a local resort.
    My blog: Loy Meets World

    Get 30% discount at WP Web Host (use coupon code: LOY30)

  2. #2
    In memoriam gold trophysilver trophybronze trophy Dan Schulz's Avatar
    Join Date
    May 2006
    Location
    Aurora, Illinois
    Posts
    15,476
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I'd use CSS for them - if they ask why, tout the lower costs of maintaining them over time.

  3. #3
    SitePoint Addict
    Join Date
    Jul 2008
    Location
    sudo rm -rf /
    Posts
    386
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Tables will vanish in near future. Use CSS.

  4. #4
    Programming Since 1978 silver trophybronze trophy felgall's Avatar
    Join Date
    Sep 2005
    Location
    Sydney, NSW, Australia
    Posts
    16,869
    Mentioned
    25 Post(s)
    Tagged
    1 Thread(s)
    Quote Originally Posted by buldozerce View Post
    Tables will vanish in near future. Use CSS.
    No they will not. They are still needed for the purpose that they were added to HTML for in the first place - to contain tabular data.
    Stephen J Chapman

    javascriptexample.net, Book Reviews, follow me on Twitter
    HTML Help, CSS Help, JavaScript Help, PHP/mySQL Help, blog
    <input name="html5" type="text" required pattern="^$">

  5. #5
    SitePoint Evangelist kooshin.com's Avatar
    Join Date
    Dec 2003
    Location
    http://kooshin.com
    Posts
    505
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    When starting a new website it is better to use CSS.

  6. #6
    Programming Since 1978 silver trophybronze trophy felgall's Avatar
    Join Date
    Sep 2005
    Location
    Sydney, NSW, Australia
    Posts
    16,869
    Mentioned
    25 Post(s)
    Tagged
    1 Thread(s)
    Even when making changes to the layout of an existing site it is better to switch to using CSS. It may take almost twice as long to make the change this time but as all subsequent changes will take about 1&#37; of the time for the CSS change that the table change would have taken and so by the end of the next change process you will already be ahead time wise.
    Stephen J Chapman

    javascriptexample.net, Book Reviews, follow me on Twitter
    HTML Help, CSS Help, JavaScript Help, PHP/mySQL Help, blog
    <input name="html5" type="text" required pattern="^$">

  7. #7
    SitePoint Addict
    Join Date
    Nov 2005
    Posts
    260
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    I agree, go with CSS. If you are redesigning the sites anyway it will be a good opportunity to rebuild with CSS.

  8. #8
    SitePoint Zealot CSmhacky's Avatar
    Join Date
    Sep 2008
    Posts
    103
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    CSS is more common than tables so I'd prefer using CSS

  9. #9
    SitePoint Enthusiast D3niss3's Avatar
    Join Date
    Sep 2008
    Location
    RP
    Posts
    49
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Ask the owners first and settle an agreement on what they decide.

    But of course, if you have the discretion on what to do next then go for CSS. Though it may take time and effort, it's the future changes that matters.

  10. #10
    SitePoint Guru cyjetsu's Avatar
    Join Date
    May 2008
    Posts
    814
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    If the tables are the main layout, switch it to css probably, but ask first, maybe they dont want css.

    If there is a lot of tabular data then you would probably want to use css tables.

  11. #11
    SitePoint Member
    Join Date
    Nov 2008
    Posts
    7
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Search engines also like css Websites. so Css is aslo useful for seo purpose.

  12. #12
    In memoriam gold trophysilver trophybronze trophy Dan Schulz's Avatar
    Join Date
    May 2006
    Location
    Aurora, Illinois
    Posts
    15,476
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Actually it doesn't matter. CSS just tends to make it easier for the search engines to get to the content on a Web page as long as it's kept in an external file.

  13. #13
    SitePoint Wizard Stomme poes's Avatar
    Join Date
    Aug 2007
    Location
    Netherlands
    Posts
    10,283
    Mentioned
    51 Post(s)
    Tagged
    2 Thread(s)
    ^Agreed. If search engines had trouble with tables (other than, the slowing-down the bots may get from nastily nested tables), all sorts of popular sites would not show up in the search results.

    I'll say, if it's a large site and bandwidth is an issue, you can score major points by changing the HTML tabled layout to HTML minimal markup w/css-- because the page will likely be half the size of the tabled version or less (I've seen this first-hand on the pages I convert away from tables) which can, if the site is huge, make a bandwidth difference. Less actual "stuff" to download, same amount of content.

  14. #14
    SitePoint Zealot Crey_Design's Avatar
    Join Date
    Oct 2008
    Location
    Scottsdale, AZ
    Posts
    152
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    CSS. Tables are clown shoes.
    Chris Reynolds
    Crey Design
    Arizona Web Design
    Personal Blog

  15. #15
    SitePoint Zealot JonShannow's Avatar
    Join Date
    Jul 2008
    Posts
    102
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Sounds Like CSS is a clear winner

  16. #16
    SitePoint Member
    Join Date
    Mar 2008
    Location
    Chandigarh
    Posts
    11
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    css

  17. #17
    SitePoint Enthusiast MetalHippy's Avatar
    Join Date
    Nov 2008
    Posts
    63
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I would probably go with css if it was me, it sounds to me like you have been asked to totally redesign them so go for it. You can always explain the reasons for choosing css if you need to.

    I hope that helps

  18. #18
    SitePoint Zealot LilyGrace's Avatar
    Join Date
    Nov 2008
    Posts
    144
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    CSS, but ask first. No sense in making the boss mad. Simply say - I'd like to also update the site to the new internet standard. He probably won't know what your talking about, but he'll probably say yes, and it will keep you out of trouble.
    Color Yourself Pink at Pink Boutique!
    I have a love of pink and my site sells pink accessories.
    We have cute pink purses, pink jewelry, pink watches,
    and some pretty cool pink stuff.

  19. #19
    SitePoint Addict jemple's Avatar
    Join Date
    Dec 2008
    Posts
    291
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    CSS is not the winner, it depends who you ask!

    My opinion is when IE uses the same standards so it renders stuff without hacks and workarounds THEN tables will disappear from web design. For those of us on timescales and not being experts/professionals, tables are still a great way to quickly restrain things that would otherwise cause us to cry ourselves to sleep.

  20. #20
    SitePoint Enthusiast
    Join Date
    Aug 2008
    Posts
    39
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by jemple View Post
    My opinion is when IE uses the same standards so it renders stuff without hacks and workarounds THEN tables will disappear from web design. For those of us on timescales and not being experts/professionals, tables are still a great way to quickly restrain things that would otherwise cause us to cry ourselves to sleep.
    We can use cross brower CSS layout without using hacks.

  21. #21
    SitePoint Zealot Lavinco's Avatar
    Join Date
    Nov 2008
    Location
    West Michigan
    Posts
    154
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by CSmhacky View Post
    CSS is more common than tables so I'd prefer using CSS
    Maybe only in very recent times but not overall my friend. I have a college class right now that teaches tables first. CSS is still ahead.

  22. #22
    In memoriam gold trophysilver trophybronze trophy Dan Schulz's Avatar
    Join Date
    May 2006
    Location
    Aurora, Illinois
    Posts
    15,476
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Are those tables for data or layout, Lavinco?

  23. #23
    Web Developer stickycarrots's Avatar
    Join Date
    Jul 2005
    Location
    Illinois State University
    Posts
    186
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I would suggest to always go with the best method and I would say the best method is definitely no tables.

  24. #24
    SitePoint Guru cyjetsu's Avatar
    Join Date
    May 2008
    Posts
    814
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    CSS is better than tables for layouts, it is a simple as that. Website owners, however may not always want the best design methods used -if they prefer something that is easier for them to update and they are not famaliar with the best code. What the client wants is always your primary objective so it is best to ask them.


Tags for this Thread

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
  •