CSS vs Tables

Discussion in 'PHP' started by annaharris, May 7, 2013.

  1. #1
    Was wondering which is best!!
    CSS or Tables??
    Can someone tell me which is better and why?
    Someone please help
     
    Solved! View solution.
    annaharris, May 7, 2013 IP
  2. GMF

    GMF Well-Known Member

    Messages:
    855
    Likes Received:
    113
    Best Answers:
    19
    Trophy Points:
    145
    #2
    It's rather simple

    Tables should ONLY be used for tabular data. If you use tables for layouts, you do it wrong.

    Use CSS instead
     
    GMF, May 7, 2013 IP
  3. #3
    I think it really depends on what you are making if you are making static sites i would prefer to use tables otherwise css layout is good one
     
    EchoTek, May 7, 2013 IP
  4. Tom Green

    Tom Green Greenhorn

    Messages:
    82
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    18
    #4
    Are you trying to get it indexed by Search Engines, or are you more focused on a slick website?
     
    Tom Green, May 7, 2013 IP
  5. GMF

    GMF Well-Known Member

    Messages:
    855
    Likes Received:
    113
    Best Answers:
    19
    Trophy Points:
    145
    #5
    No, it does not matter if the site is static, very small, very big.... whatever.

    You simply DO NOT use tables for layout. You might THINK that it's quick and easy, but you are wrong. Terribly wrong.

    Sites created with table layout are a nightmare to maintain, and you can throw accessibility right out the window. There is also the fact that you abuse HTML.

    Well, he should really use CSS instead of tables, no matter what his intentions are.



    Anyone that says that tables should be used for layout is wrong. Plane and simple. It's and old technique, from a time where it seemingly was the only way (it was still the wrong thing to do).
     
    GMF, May 7, 2013 IP
  6. Tom Green

    Tom Green Greenhorn

    Messages:
    82
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    18
    #6
    It seems they now index css as well. Used to be an issue just a year ago.
     
    Tom Green, May 7, 2013 IP
  7. GMF

    GMF Well-Known Member

    Messages:
    855
    Likes Received:
    113
    Best Answers:
    19
    Trophy Points:
    145
    #7
    What? Where did you hear/read that?

    I don't want to insult you, but Google not indexing sites which use CSS is the biggest piece of bull**it I EVER heard. Whoever originally said that lied.


    Could it be that it was Javascript?
     
    GMF, May 7, 2013 IP
  8. Tom Green

    Tom Green Greenhorn

    Messages:
    82
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    18
    #8
    A. You can watch Matt Cutts speaking about how Googlebot is "improving" in crawling CSS, below.
    B. You can ease up on the S**t slinging, buddy. Whatever you have to say, can be said with citations, links, whatever you think can help you prove you're right.

    http://www.beanstalk-inc.com/blog/2012/05/28/googlebot-now-indexing-javascript-ajax-css/
     
    Tom Green, May 7, 2013 IP
  9. Oozen

    Oozen Well-Known Member

    Messages:
    144
    Likes Received:
    34
    Best Answers:
    0
    Trophy Points:
    118
    #9
    Definitely CSS. It allows you to update all of your page designs at once instead of having to do each of them manually if you used tables. Save yourself the headache and go with CSS.
     
    Oozen, May 7, 2013 IP
  10. GMF

    GMF Well-Known Member

    Messages:
    855
    Likes Received:
    113
    Best Answers:
    19
    Trophy Points:
    145
    #10
    I am not your buddy, and as stated above, I didn't mean to insult you.
    If you take it personal, not my problem.


    The video you posted is from last year. I have a question:

    Do you really think that the google bot wasn't able to understand CSS up to this point? :)
     
    GMF, May 8, 2013 IP
  11. Tom Green

    Tom Green Greenhorn

    Messages:
    82
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    18
    #11
    If you took "buddy" literally, tough.
    Good luck in life.
     
    Tom Green, May 8, 2013 IP
  12. GMF

    GMF Well-Known Member

    Messages:
    855
    Likes Received:
    113
    Best Answers:
    19
    Trophy Points:
    145
    #12
    What's that supposed to mean :confused:.


    Anyway: Care to answer my question ?
     
    GMF, May 8, 2013 IP
  13. Alexbizz

    Alexbizz Active Member

    Messages:
    194
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    60
    #13
    CSS for sure.
     
    Alexbizz, May 8, 2013 IP
  14. matt_62

    matt_62 Prominent Member

    Messages:
    1,827
    Likes Received:
    515
    Best Answers:
    14
    Trophy Points:
    350
    #14
    Oh gosh.
    I use both. Css is for everything, (including data within a table).

    Now within the html itself, if I have alot of data that really needs to be within a table, thats when I use a table. For example, if I am pulling out 100 records of users from an sql database, I will display that within a table.

    so, css is for styling everything on the page (including the data within the table). Tables is html code, only to be used for storing tabular data that just wouldnt look right trying to store within paragraphs.

     
    matt_62, May 8, 2013 IP
    GMF likes this.
  15. jestep

    jestep Prominent Member

    Messages:
    3,659
    Likes Received:
    215
    Best Answers:
    19
    Trophy Points:
    330
    #15

    This is spot on and it actually addresses that tables can and should still be used for what tables were meant to be used for.
     
    jestep, May 9, 2013 IP
  16. E_books

    E_books Banned

    Messages:
    39
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    23
    #16
    It vary from person to person as per their requirements but i would advice you to use css as they are fast loading and gives good result compare to table
     
    E_books, May 9, 2013 IP
    EchoTek likes this.
  17. GMF

    GMF Well-Known Member

    Messages:
    855
    Likes Received:
    113
    Best Answers:
    19
    Trophy Points:
    145
    #17

    Just saw that this was marked as "Best Answer".


    For everyone that might read the thread and thinks - "hey, this is market as best answer, so it should be right." Think again - because this IS NOT THE BEST ANSWER.


    If you think that tables for layout still has a place in 2013 (and beyond), do me, yourself and the rest of the world a favour and step away from the keyboard, make yourself a nice cup of coffee / tee and over-think your career choice.
     
    GMF, May 10, 2013 IP