Jump to content


Photo

CSS


  • Please log in to reply
31 replies to this topic

#21 Jamie Huskisson

Jamie Huskisson

    Retired P2L Staff

  • Members
  • PipPipPipPip
  • 3,648 posts
  • Gender:Male
  • Location:Nottingham, UK

Posted 07 July 2005 - 02:50 PM

I've heard it said over and over again, and now I'm repeating it ;) Tables are for tabular data, not layouts :D

name a couple of things css can do that tables can't?

i'm a huge fan of css layouts, but i'm just saying, you can't get rid of tables overnight, it would be silly

#22 Sodlier_Pyro

Sodlier_Pyro

    Jedi In Training

  • Members
  • PipPip
  • 440 posts
  • Location:Virginia
  • Interests:Computers, web design, anything computers basically

Posted 07 July 2005 - 02:55 PM

I disagree with Jay. CSS isn't just a replacement of tables. It's an entirely different thing . CSS is used to stylize a website, while tables are used for organizing data. They are two different things, meant for two different purposes.

Using tables for layouts is like using Photoshop for vector images, or Illustrator for rasterized images. Sure, it can be done, but you won't be able to achieve as much as you would if you used the proper tool.

You're quite wrong my friend! :D CSS is not entireley different than tables, it's just the same but your code is sexy (quoteing jaymz). It's very neat and organized unlike my evil iframes site which if full of code (pain to type which was why I used Dreamweaver). I also have to agree with the book I'm reading that CSS is a big correction to mistake made!

#23 Jamie Huskisson

Jamie Huskisson

    Retired P2L Staff

  • Members
  • PipPipPipPip
  • 3,648 posts
  • Gender:Male
  • Location:Nottingham, UK

Posted 07 July 2005 - 03:10 PM

very few sites get rated on their code unless they are of the stature of say Microsoft, who recently released their MSN Search out to the public with the line:
<html language="text/javascript">

YES THATS RIGHT, MICROSOFT!

#24 coolaid

coolaid

    P2L Jedi Master

  • Members
  • PipPipPipPip
  • 1,435 posts
  • Gender:Male
  • Interests:i wonder..

Posted 07 July 2005 - 03:30 PM

why do people confuse other people css doesnt replace tables :D
css is the code used to add graphics/backgrounds and postitions to a layout.

now, as far as i know, the correct way is to use a div for every part of the layout tahts in a different position. such as <div id='header"></div>

but you can easily use <table id="header"><tr><td></td></tr></table>
but that would be incorrect.

Edited by coolaid, 07 July 2005 - 03:31 PM.


#25 Jaymz

Jaymz

    Retired P2L Staff

  • Members
  • PipPipPipPip
  • 4,104 posts

Posted 07 July 2005 - 03:34 PM

very few sites get rated on their code unless they are of the stature of say Microsoft, who recently released their MSN Search out to the public with the line:
<html language="text/javascript">

YES THATS RIGHT, MICROSOFT!

;) I feel a lot safer using Windows now... :D


coolaid, my the new version of my site is 100% CSS :) I've replaced my tables with CSS, so yes, they do replace tables.

#26 Jamie Huskisson

Jamie Huskisson

    Retired P2L Staff

  • Members
  • PipPipPipPip
  • 3,648 posts
  • Gender:Male
  • Location:Nottingham, UK

Posted 07 July 2005 - 04:08 PM

they *can* replace tables, but they won't...

tables are a HTML standard, CSS/divs are looking to be a XHTML standard

#27 greg

greg

    Jedi In Training

  • Members
  • PipPip
  • 499 posts
  • Location:New York City
  • Interests:Fine art, web and graphic design, naval architecture, chess, and sports.

Posted 07 July 2005 - 07:19 PM

name a couple of things css can do that tables can't?

Customize links, for starters. Once again, CSS and tables are two completely different things.

#28 Jaymz

Jaymz

    Retired P2L Staff

  • Members
  • PipPipPipPip
  • 4,104 posts

Posted 07 July 2005 - 07:24 PM

name a couple of things css can do that tables can't?

Customize links, for starters. Once again, CSS and tables are two completely different things.

He was referring to CSS in a layout sense :)

CSS divs (I have found) can be easily positioned where you need them, moreso than I've found with tables. Yes, there are small things to look for when designing with IE in mind (horrible CSS support) but there are so many workarounds for it that ususally a google will fix it :angry:

#29 greg

greg

    Jedi In Training

  • Members
  • PipPip
  • 499 posts
  • Location:New York City
  • Interests:Fine art, web and graphic design, naval architecture, chess, and sports.

Posted 07 July 2005 - 07:27 PM

Simple: Tables just aren't as versatile as divs. Like Jay mentioned, divs can be placed anywhere, and customized any way you want. Tables are for data, and that's it.

#30 Sodlier_Pyro

Sodlier_Pyro

    Jedi In Training

  • Members
  • PipPip
  • 440 posts
  • Location:Virginia
  • Interests:Computers, web design, anything computers basically

Posted 07 July 2005 - 08:09 PM

coolaid, my the new version of my site is 100% CSS wink.gif I've replaced my tables with CSS, so yes, they do replace tables.

I went to your site and I looked at the source, the code isn't the sexy CSS you speak of. Have you not uploaded yet I'm geussing? Nice site btw I love the tabs and the color scheme.

#31 Jaymz

Jaymz

    Retired P2L Staff

  • Members
  • PipPipPipPip
  • 4,104 posts

Posted 07 July 2005 - 08:14 PM

coolaid, my the new version of my site is 100% CSS wink.gif I've replaced my tables with CSS, so yes, they do replace tables.

I went to your site and I looked at the source, the code isn't the sexy CSS you speak of. Have you not uploaded yet I'm geussing? Nice site btw I love the tabs and the color scheme.

It's still in development stages, PM me if you'd like the link, I'm not going to clutter the topic :)

#32 coolaid

coolaid

    P2L Jedi Master

  • Members
  • PipPipPipPip
  • 1,435 posts
  • Gender:Male
  • Interests:i wonder..

Posted 07 July 2005 - 09:24 PM

divs replace tables

css replaces cellpadding="x" cellspacing="x" height="x" width="x" bgcolor="x" and so forth.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users