Featured Worklog

Price Search



PC Apex Sponsor


PC Apex Sponsors



PC Apex RSS Feeds

RSS Feed for PC Apex Reviews & ArticlesRSS Feed for PC Apex PC Modding WorklogsRSS Feed for the PC Apex Daily DisturbanceRSS Feed for the latest PC Apex Site NewsRSS Feed for PC Apex Affiliate and Web NewsRSS Feed for PC Apex Deals and Steals

Go Back   Apex Community Forums // Other Forums // Designers Corner // Coding / Scripting / Programming

Coding / Scripting / Programming Discussions on all manner of coding and scripting.

Reply
 
LinkBack Thread Tools Display Modes
Old 06-July-06, 02:40 AM   #1 (permalink)
Apex Techie Wannabe
Default If I shouldn't use tables for layouts, what should I use?

I keep seeing this around. "Don't use tables for layouts." But nothing I read offers an alternative. It's just assumed everyone knows. I've been in the biz for years and didn't think I need to re-research HTML all over again. Can someone point me in the right direction?

Thanks,

256Killa
256Killa is offline     Reply With Quote
Old 06-July-06, 02:49 AM   #2 (permalink)
Rob
Advocatus Diaboli
Rob's Avatar
Default Re: If I shouldn't use tables for layouts, what should I use?

The latest and greatest is CSS style sheets.

On the one I'm working on now, I'm using a combination of both. Style for colors and fonts, but that's it.

Rob
Rob is offline     Reply With Quote
Old 06-July-06, 12:28 PM   #3 (permalink)
Apex Techie Wannabe
Default Re: If I shouldn't use tables for layouts, what should I use?

Quote:
Originally Posted by Rob
The latest and greatest is CSS style sheets.

On the one I'm working on now, I'm using a combination of both. Style for colors and fonts, but that's it.

Rob

I definitely use CSS but I thought it was just for formatting, if that's the right word. Like you said, colors and font manipulation. Is it supposed to be used for arrangement of elements as well or am I just diggin to deep?
256Killa is offline     Reply With Quote
Old 06-July-06, 01:10 PM   #4 (permalink)
Apex Tech Maniac Supreme
Peng Lord's Avatar
Default Re: If I shouldn't use tables for layouts, what should I use?

CSS is pretty much just for formatting. Regarding the intial question, HTML tables have been replaced by PHP. A basic tutorial

EDIT: added clarity

Last edited by Peng Lord; 06-July-06 at 01:37 PM..
Peng Lord is offline     Reply With Quote
Old 06-July-06, 01:26 PM   #5 (permalink)
Apex Tech Maniac
Bionic's Avatar
Default Re: If I shouldn't use tables for layouts, what should I use?

CSS can be used for placing elements as well.
I hate to look like I'm advertising my own stuff, but I recently re-did my clan's website using only CSS

You can see it at http://www.beefpile.net

If you look at the source code, you will see a bunch of
HTML Code:
<div> 
tags, which are sort of like "content bins"

The CSS file is at http://www.beefpile.net/beefstyle.css

If you check that out, you will see a section under the /*--layout--*/ comment line: this is where I organize the page

Each of those headings corresponds to one of the divs in the HTML, and defines the formatting and placement

Yahoo has a good set of grids that you can use as well
http://developer.yahoo.com/yui/grids/

Last edited by Bionic; 06-July-06 at 01:39 PM..
Bionic is offline     Reply With Quote
Old 06-July-06, 01:45 PM   #6 (permalink)
Apex Tech Maniac
Sleepy_Sentry's Avatar
Default Re: If I shouldn't use tables for layouts, what should I use?

CSS is great for formatting in that can make things much faster. For example, you can use the same CSS stylesheet file for an entire website. If you want to change the font or background color or whatever on the whole website, you can just edit one CSS file instead of each HTML page individually.

For website layouts, CSS is the way to go. If you want to organize content on a webpage, then HTML tables are the way to go.

I used CSS on dealfiesta.com and tables to organize the content. Check it out.
Sleepy_Sentry is offline     Reply With Quote
Old 14-July-06, 07:08 PM   #7 (permalink)
The Green Gator
DavidVaini's Avatar
Default Re: If I shouldn't use tables for layouts, what should I use?

there is nothing wrong with tables.. Its just most of the time people that use tables either do them wrong or use them excessively..
DavidVaini is offline     Reply With Quote
Old 21-July-06, 06:24 PM   #8 (permalink)
Apex Techie Wannabe
Default Re: If I shouldn't use tables for layouts, what should I use?

hey thanks all for the help.

Bionic, thanks for providing some samples. I really appreciate that. I haven't looked at them yet but I do understand what your getting at.
256Killa is offline     Reply With Quote
Old 21-July-06, 06:33 PM   #9 (permalink)
Editor/Reviewer/LED Guru
Twizted's Avatar
Default Re: If I shouldn't use tables for layouts, what should I use?

Quote:
Originally Posted by Peng Lord
CSS is pretty much just for formatting. Regarding the intial question, HTML tables have been replaced by PHP. A basic tutorial

EDIT: added clarity

PHP is simply database scripting.... PHP bases sites (Even out own PCA and DragonModz) still makes heavy use of tables to format the pages... This very post is contained within tables stored in a database as a template for vBulletin Board as appose to being in an actual HTML/PHP file on the server.... DragonModz posts even have Tables within Tables..... But.... Other PHP driven sites like Post-Nuke and PHP-Nuke to name a few do have the tables coded right into the PHP files....

In other words tables are still VERY useful and a standard for formatting a web page and anyone saying not to use them is simply stating their opinion....
Twizted is offline     Reply With Quote
Old 22-July-06, 10:06 AM   #10 (permalink)
Apex Tech Maniac Supreme
Peng Lord's Avatar
Default Re: If I shouldn't use tables for layouts, what should I use?

As per my link, frames for content layout and control (indexes, etc.) are not a very good choice. That's what I percieved the original question to be regarding. Using frames, although I realize that the question was regarding tables, I've never heard of anyone actually having a problem with tables per se.
Peng Lord is offline     Reply With Quote
Old 22-July-06, 02:12 PM   #11 (permalink)
Apex Techie Wannabe
Default Re: If I shouldn't use tables for layouts, what should I use?

I'm definitely clear on the server-side scripting languages such as php, asp, jsp etc etc. You an incorporate any kind of layout technique into your code of choice. My concern is what is the better layout technique? Supposedly, because of the way tables are rendered in a browser and the order in which they are rendered, deeply nesting them can cause a page to render as if it were on a slow connection. The other issue is just organizing those darn tables and not missing any of the numerous tags you would end up with if you have to nest them really deeply. According to articles I've read, using CSS for layout arrangement solves those issues and is much easier to go back in and modify. But every article I find never gives an example of how it's done. It doesn't just seem all that obvious. I thought the point of CSS is to manage fonts and colors for the most part ya know. I can't see how it can manipulate a complex layout.
256Killa is offline     Reply With Quote
Old 30-July-06, 08:35 AM   #12 (permalink)
Apex Techie Lite
Default Re: If I shouldn't use tables for layouts, what should I use?

Tables weren't really meant to be made for a design element. They were made to show data and all that jazz. But, not many people do that, so instead people started using them for design.
Well, I can't stand tables. Neither can most designers who have W3 complient sites and all that.
Here is an long, but excellent tutorial that will show you how to take a design made in tables and put it into valid CSS and HTML using divs. Or you can read along and start from scratch.
Phil is offline     Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Tables and framesets Rob Internet / Network Tweaks 20 26-October-06 06:16 PM
Slashdot // A Complete Guide to Pivot Tables Gizmo Slashdot RSS 0 20-November-04 03:12 AM
Threads, taps, drilling, etc... tables lAnonymousl Case Modding 8 12-November-04 12:11 AM
The Register // Keyboards are old - tap tables to send email Gizmo The Register RSS 0 07-September-04 09:04 PM


All times are GMT -5. The time now is 06:33 PM.


Powered by vBulletin® Version 3.8.3
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.0
Copyright PCApex.com, GameApex.com, ForumApex.com 2001 - 2008
Advertisements

Page generated in 0.21043 seconds with 9 queries