1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Are so-called developers talking rubbish when...

Discussion in 'CSS' started by Cobalt64, Jul 20, 2006.

  1. #1
    They knock the use of CSS? I must admit until about a year ago, I was what has become known as "old-school" in that I stuck everything in tables. Whereas this practice was fine a few years ago when there was little other way to line up elements in a complex layout, its not really so acceptable these days with the power of CSS.

    I was talking to a developer only recently, and whilst the layout looked great and did the job, it was littered with tables within tables within tables. When I queried their use (there was only one use of tables to display tabular data) I got a barrage of abuse, insisting that I obviously knew nothing about creating web pages and that tables are far better than CSS, you can't do this and that with CSS etc etc.

    Apart from being stunned, it got me thinking - how much can you do with tables that you can't with CSS? Did this guy have a point? I must say I happily use CSS for everything I do these days, and whilst I have run into quirks between browsers, there has been nothing without a workaround thus far.

    Am I naive or was this developer intent on taking the easy route? Let's face it, I can still put something in table form within minutes whereas CSS might take me a little longer to get everything lined up as I want, but I feel absolutely no reward from doing this.
     
    Cobalt64, Jul 20, 2006 IP
  2. AdamSee

    AdamSee Well-Known Member

    Messages:
    422
    Likes Received:
    28
    Best Answers:
    0
    Trophy Points:
    135
    #2
    Tables are for tabular data. Layout isn't tabular data.

    He's a lazy developer with little passion for his work and he'll suffer in the long run. Table design is easier. Although CSS design should be, there's still many browsers quirks to accomodate.

    Using layers and CSS for layout, makes the code much cleaner, search engine optimisation becomes easier, bandwidth savings and better accessibility.
     
    AdamSee, Jul 20, 2006 IP
  3. Lever

    Lever Deep Thought

    Messages:
    1,823
    Likes Received:
    94
    Best Answers:
    0
    Trophy Points:
    145
    #3
    Hmmm... the barrage of abuse & condescention do not sound particularly savoury...

    Tables are easy but (codewise) bulky for layout, and to do excellent CSS takes skill & patience. Have a look at CSS Zen Garden for inspiration :)
     
    Lever, Jul 20, 2006 IP
  4. Cobalt64

    Cobalt64 Peon

    Messages:
    183
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Preaching to the converted, Lever - I love CSS and sites like CSS Zen really are a tribute to the power. Same content, different stylesheet, radically different layout - I barely thought it possible when I first saw that site :)

    No the comments were a little harsh considering I only asked why he went the tabular route!

    That was my thought Adam, though I wanted some more opinions on this since I'm far from coder of the month material.

    *Off topic, I used to live in Chesterfield (moved to Edinburgh for University).
     
    Cobalt64, Jul 20, 2006 IP
    Lever likes this.
  5. Will.Spencer

    Will.Spencer NetBuilder

    Messages:
    14,789
    Likes Received:
    1,040
    Best Answers:
    0
    Trophy Points:
    375
    #5
    I went from pure tables to pure CSS to a mixture of the two.

    CSS is just annoying at times, largely due to browser incompatibilities.
     
    Will.Spencer, Jul 20, 2006 IP
    Mia and GTech like this.
  6. adacprogramming

    adacprogramming Well-Known Member

    Messages:
    1,615
    Likes Received:
    62
    Best Answers:
    0
    Trophy Points:
    125
    #6
    Same here, I normally use a single table for my initial layout and css from there. I have a couple pure css sitesm but I find them to be more consistant if I start from a table.
     
    adacprogramming, Jul 20, 2006 IP
  7. AdamSee

    AdamSee Well-Known Member

    Messages:
    422
    Likes Received:
    28
    Best Answers:
    0
    Trophy Points:
    135
    #7
    People will pay good money to have a decent CSS layout that works on all browsers.

    That's interesting Cobalt, what are you studying that covers web design? I'm sure you can find my age and pictures of me, from links on and from the four shapes site. Let me know if you knew me! :)
     
    AdamSee, Jul 20, 2006 IP
  8. kk5st

    kk5st Prominent Member

    Messages:
    3,497
    Likes Received:
    376
    Best Answers:
    29
    Trophy Points:
    335
    #8
    It's funny, I guess. I always thought table layouts were a royal PITA. Then with IE6 in 2001, and Phoenix .5 in 2002, css layouts became practical. The abandonment of NN4 was the golden moment, though.

    I haven't coded a table layout in over three years, now, and I doubt that I could anymore. Once you know IE's shortcomings and bugs, the fixes become second nature. And fast? CSS layout coding runs circles around coding tables. I can can code just about any layout in little more than the time it takes to type the content. Then a little tweaking and it's done.

    Sorry, table fanboys. If coding css is harder for you, it's only because you haven't learned it well yet.

    cheers,

    gary
     
    kk5st, Jul 21, 2006 IP
  9. Cobalt64

    Cobalt64 Peon

    Messages:
    183
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    0
    #9
    Web design? I'm studying Physics - although I'm chained to the computer day and night, I do a spot of web design and write articles purely for the enjoyment. The few quid it brings in are a bonus too!

    Fraid I'm not familiar with you, but its very strange to be looking at pictures of the crooked spire and reviews of the Green Room. Wasn't that long since I was a regular, though I preferred it after the numerous police raids. At least you could see from one side of the room to the other afterwards ;)

    I agree with you fully Gary - I used to be a fan of tables but that was because I knew and understood them, it was the easy route basically. Fortunately I moved into the realms of CSS after it became really usable, and I'm yet to come across any quirk that can't be fixed with a quick workaround. Sure I would rather not have to work around to get something that looks great in FF to look the same in IE, but it's a minor inconvenience to be working nearer todays standards.
     
    Cobalt64, Jul 21, 2006 IP
  10. Superorb

    Superorb Peon

    Messages:
    149
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #10
    I can see why people stil use tables, but to attack you like that is completely unwarranted. If they want to take their tables to the grave that's what they will do along with their future developing websites. People need to understand that times change. And, if you don't change with them, you'll be left in the dust either by some younger hot shot, or someone who is willing to learn something new. You can teach an old dog new tricks.
     
    Superorb, Jul 28, 2006 IP
  11. Gordaen

    Gordaen Peon

    Messages:
    277
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    0
    #11
    O nested tables, how ugly thou art!

    Tables for layout = wrong. They are bulky, ugly, and that isn't their purpose. It sounds like the person who suggested otherwise is too lazy to learn to do things the proper way. CSS layouts are very easy after just a little bit of practice and CSS can do anything that a table can. CSS can also cut down on the data transfer when the pages all use the same CSS file(s) compared to each table page with its own table(s).

    Did you ask him/her if s/he still uses the font tag?
     
    Gordaen, Jul 28, 2006 IP
  12. Superorb

    Superorb Peon

    Messages:
    149
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #12
    I usually will have each sub-section of the site share another css sheet to keep formatting form those smaller sections together. Really it's just to make my life easier.
     
    Superorb, Jul 28, 2006 IP
  13. tgo

    tgo Peon

    Messages:
    124
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #13
    Tables and CSS both have their uses in real web design.

    I design both in CSS and Tables, and I find both have good points and bad points. CSS is easier, less bulky, easier to troublshoot, and reuseable most of the time. However i canot see myself making a very complex layout in CSS such as http://famousqt.com. Some clients want flashy graphics and a cool navigation bar that would take forever to be done with just css.

    Tablular layouts
    http://practicalart.ca
    http://famousqt.com

    CSS Layouts
    http://broadbandrates.info
    http://flashygamers.com
    http://seohelp.info
     
    tgo, Aug 1, 2006 IP
  14. kk5st

    kk5st Prominent Member

    Messages:
    3,497
    Likes Received:
    376
    Best Answers:
    29
    Trophy Points:
    335
    #14
    @tgo: The famousqt page would be a PITA either way, but the html would be much simpler w/o the the gawdawful nested tables. I suspect the css version would be easier to maintain, and certainly easier to alter.

    The practicalart page is simple. It would be no problem in css, and certainly wouldn't break with the first font size increase as the table version does.

    To repeat myself: "If coding css is harder for you, it's only because you haven't learned it well yet."

    cheers,

    gary
     
    kk5st, Aug 1, 2006 IP
  15. AdamSee

    AdamSee Well-Known Member

    Messages:
    422
    Likes Received:
    28
    Best Answers:
    0
    Trophy Points:
    135
    #15
    You could do all those designs in CSS. The famousqt one I'd absolute position all the hover boxes and made the whole image a background. The page also doesn't work as well without javascript - you could make it work fine with just CSS.

    Tables aren't for full blown layouts and I'm confident enough in my skills to be able to emulate any table layout... Of course except when laying out tabular data.
     
    AdamSee, Aug 2, 2006 IP
  16. Xitanto

    Xitanto Peon

    Messages:
    434
    Likes Received:
    9
    Best Answers:
    0
    Trophy Points:
    0
    #16
    The problem I have with CSS is that I only have enough skill to keep <div> tags from fucking up.
     
    Xitanto, Aug 2, 2006 IP
  17. MattUK

    MattUK Notable Member

    Messages:
    6,950
    Likes Received:
    377
    Best Answers:
    0
    Trophy Points:
    275
    #17
    CSS is better from an SEO perspective as well, it get's code off of the page and raises the importance of the content in the search engines view. I've seen pages where the content doesn't even make an appearance in the code until three quarters of the way down the page. Never good for SEO
     
    MattUK, Aug 2, 2006 IP
  18. euphers

    euphers Peon

    Messages:
    56
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #18
    Very true.

    I used to be addicted to tables, and just recently converted to all CSS layouts. I can't imagine turning back! For quick and dirty pages, I still find myself using tables, but in general CSS is a lot more fun to work with, not to mention cleaner code!
     
    euphers, Aug 3, 2006 IP
  19. Kendothpro

    Kendothpro Well-Known Member

    Messages:
    574
    Likes Received:
    25
    Best Answers:
    0
    Trophy Points:
    120
    #19
    use the best of both worlds
    most of the times a layout with 1 table (exactly ONE) and all the rest done in CSS is the best in terms of code-cleanness and speed of development
    the table is used for the basic layout while the css is used for the rest, that way you don'thave to deal with all the browser hacks and problems while still keeping good code :)
     
    Kendothpro, Aug 6, 2006 IP
  20. FeelLikeANut

    FeelLikeANut Peon

    Messages:
    330
    Likes Received:
    19
    Best Answers:
    0
    Trophy Points:
    0
    #20
    I would consider it very rare that a table would be either better or faster—assuming one has become very experienced with CSS layouts, that is.
     
    FeelLikeANut, Aug 6, 2006 IP