Webcomics Community
Home    Archive
February 07, 2012, 12:28:08 PM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
10:05:09MythThrazzThis forum is soooo dead Sad
17:00:15Chadm1nIt does appear to be rather idle these days.
06:05:39RobNot dead.... just a little sleepy. Lots of good info on the archives and we'll be adding more from time to time. What can I say... we all get busy right? But this site will always be here as a resource to those who can use it.
News: Want to get your Webcomic Site reviewed by a professional? Volunteer your site for review in this thread!
 
   Home   Help Search Calendar Login Register  
Del.icio.us Digg FURL FaceBook Stumble Upon Reddit WeLink

Pages: [1]
  Print  
Author Topic: Tables vs CSS  (Read 1268 times)
Terrence Marks
Newbie
*
Offline Offline

Posts: 7


WWW
« on: April 23, 2010, 05:35:32 AM »
ReplyReply

I've noticed, in the site reviews, a preference for positioning via CSS instead of tables.

As someone with a mostly-table-based site (who doesn't want to reconfigure everything unless he has to)

what are the advantages of using CSS?
Logged
ran
Full Member
***
Offline Offline

Posts: 151


Oh so tired.


WWW
« Reply #1 on: April 23, 2010, 08:49:42 AM »
ReplyReply

With CSS, you define a bunch of classes. I'll try to explain it in a way you'll easily understand.

You know when you put tags around a sentence to make it bold, like this? <b>werdz</b>

Well, with CSS, you basically make up your own tags, but instead of bolding your text, you can do anything with it--you can change your font, text colour, put it in a box with a specific background and position it wherever you want on the page, align it, make it a rollover image, pretty much anything you can dream of, but without making a lot of changes to your hard code. You just need to remember the tag, and either put your css in your header, or link to an external file in your header. It's also really easy to make changes to without messing everything up.
Logged

Terrence Marks
Newbie
*
Offline Offline

Posts: 7


WWW
« Reply #2 on: April 23, 2010, 03:06:16 PM »
ReplyReply

Yes.  I know what CSS is.

Is there a functional advantage to using CSS for layout and positioning instead of tables? 

Not "ease of use".  I've got the page built.  The easy thing is to leave it as is. 

In what circumstances will a CSS-based layout give the readers a better experience than a table-based layout?
Logged
Dragon Powered
Senior Web Correspondent
Administrator
Full Member
*****
Offline Offline

Posts: 120


Fractured


WWW
« Reply #3 on: April 23, 2010, 03:52:27 PM »
ReplyReply

Basically, you can use CSS styles with your tables to do many of the same things division tags can do, and you can use divisions within your tables.  There is nothing wrong with mixing and matching.

Functionally, a pure CSS site will scale better for alternative devices, such as smartphones, that are used to view your webpage.  A pure CSS site will display in an easily readable format on text-only browsers as well, since the items will display more like a bullet list, whereas a table driven site kind of becomes a mess on text readers.

It really depends on what your site is delivering, and what audience you are aiming for. Tables have been a standard for a long time, and will display pretty much evenly across browsers. CSS is a new standard, and should display pretty much the same across all browsers except Internet Explorer, which for some reason STILL believes it should dictate what the web looks like.  You might need to use 'hacks' to get your site to display properly on different versions of IE.  Also, if your site is something like a forum, with multiple repeating sections in a page, tables seem to flow easier.  Aligning items on a page works great in CSS, but can get tricky when aligning the same item again, but in another spot on the page, and again, and again. Floats can crash, rollover attributes don't work uniformly, etc.

Logged
mishi
Newbie
*
Offline Offline

Posts: 7


ハーレクイン


WWW
« Reply #4 on: April 25, 2010, 05:22:45 PM »
ReplyReply

Really, you should only use tables for text. Never for your basic layout. CSS has been the new standard for quite some time. It may seem like a big pain to learn a new way of coding, but it's actually a lot easier than messing around with tables once you get the hang of it. You have more control over styling in general, and the ability to make your site look a lot more professional. As dragon said there a few issues from browser to browser, but they are usually ie related and fixable after a little trial and error. I really recommend switching over to div and ditching the tables :3
Logged

~ ミシーひめ
Terrence Marks
Newbie
*
Offline Offline

Posts: 7


WWW
« Reply #5 on: April 26, 2010, 12:11:34 AM »
ReplyReply

Thank you very much for all your help and advice.

I believe I'll leave things as they are for now; the last few attempts to convert to all-CSS have failed (particularly the cast page - http://yousayitfirst.com/cast/ - tables seem to handle the structure [two columns of variable size, with occasional bits in the middle] a lot more gracefully).
Logged
operationremie
Full Member
***
Offline Offline

Posts: 101


i will no longer post.


« Reply #6 on: July 12, 2010, 08:12:57 AM »
ReplyReply

i'm going to "hijack" this thread since I am trying to use CSS for my site instead of HTML since I feel css will be a much better option for me.

i get the whole defining everything with CSS but i think my issue is that I don't really know how to put things where i want them. i honestly would love to have someone help me on AIM or something to discuss it. i actually think i still have a jpg of how i want my site to look lol

if this is possible, i'd love the help
Logged
Rob
Resident Dick!
Administrator
Hero Member
*****
Offline Offline

Posts: 1324


Easily Confused, Feeble Minded Founder


WWW
« Reply #7 on: July 12, 2010, 07:17:06 PM »
ReplyReply

I hope you get some help Remie. Unfortunately I know diddly about CSS. Keep trying though. There are some good "CSS for Dummies" books available that are pretty cheap if you get desperate.

Logged

Dr. BlkKnight
Global Moderator
Full Member
*****
Offline Offline

Posts: 129


Community Relations Coordinator


WWW
« Reply #8 on: July 12, 2010, 07:21:40 PM »
ReplyReply

I am trying to use CSS for my site instead of HTML since I feel css will be a much better option for me.

That's kind of an impossibility.

CSS enhances HTML, not replace it.
Logged

operationremie
Full Member
***
Offline Offline

Posts: 101


i will no longer post.


« Reply #9 on: July 13, 2010, 04:36:25 AM »
ReplyReply

I am trying to use CSS for my site instead of HTML since I feel css will be a much better option for me.

That's kind of an impossibility.

CSS enhances HTML, not replace it.

haha see, that's why i know nothing! i used HTML 3.0 for dummies to make my last site. i'm just an accountant, not a designer Tongue
Logged
Alectric
Full Member
***
Offline Offline

Posts: 166



WWW
« Reply #10 on: July 13, 2010, 08:24:54 PM »
ReplyReply

http://w3schools.com/

This site should really help you.  Organized, simple, and interactive tutorials in all aspects of web development with plenty of further references.  I recommend you take the HTML tutorial, and the follow it with the CSS tutorial.
Logged

operationremie
Full Member
***
Offline Offline

Posts: 101


i will no longer post.


« Reply #11 on: July 14, 2010, 04:54:06 AM »
ReplyReply

http://w3schools.com/

This site should really help you.  Organized, simple, and interactive tutorials in all aspects of web development with plenty of further references.  I recommend you take the HTML tutorial, and the follow it with the CSS tutorial.

thanks. i've been reading their stuff since i started trying to do my site and they have been helpful. i think it's just minor questions that i have.
Logged
Dr. BlkKnight
Global Moderator
Full Member
*****
Offline Offline

Posts: 129


Community Relations Coordinator


WWW
« Reply #12 on: July 14, 2010, 03:01:44 PM »
ReplyReply

Yeah, w3schools is like THE place to start out, but you will eventually get to a point where they can't support your needs properly. Then it's old-fashioned Googling.
Logged

Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!