Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Tableless Design. What it is?

Featured Replies

tabeless design is when you create your whole website layout without a table. You use css to create most aspects of it and produce cleaner code that is better for accessibility, usability and SEO. Tables should never be used for the design and layout of a site, they should only be used for displaying tabular data.

 

 

Here you go some further reading:

http://en.wikipedia.org/wiki/Tableless_web_design

tabeless design is when you create your whole website layout without a table. You use css to create most aspects of it and produce cleaner code that is better for accessibility, usability and SEO. Tables should never be used for the design and layout of a site, they should only be used for displaying tabular data.

Here you go some further reading:

http://en.wikipedia.org/wiki/Tableless_web_design

 

QFT Dizi...you know what is sad? That most people who claim themselves pro designers still use table based layouts

QFT Dizi...you know what is sad? That most people who claim themselves pro designers still use table based layouts

 

I know! I've seen this way too many times. I know someone who has his own Web Design company who makes websites with tables, the annoying thing is that he seems to be doing well too! Shocking...

I know! I've seen this way too many times. I know someone who has his own Web Design company who makes websites with tables, the annoying thing is that he seems to be doing well too! Shocking...

 

I totally relate to this. It does annoy me greatly. I too know of way too many people making way too much money creating substandard work (and yes, its mainly tables-based).

Speaking as someone who has designed websites with both, while tables are easier, tableless designs are far better in the long run. Not only can you do more with them, but they are better for accessibility.

 

Not to mention that they make for a tidier code ^_^

  • Author

Thanks guys! But can u tell me more? Why it is preffered than the usual way? What are the benefits?:);)

  • 1 month later...

 

 

I can't believe I stumbled across a bunch of morons who are reluctant to admit that learning how to do "tableless" web layouts is nothing really great.

 

Just face it. Using tables can be just as good as using divs / css for a web layout. Using tables instead of just divs is just a preference to the coder. Neither are better. So stop trying to make lame arguments that tabeless designs are the way to go and that some web design companies out there shouldn't be using tables.

 

Seriously, think a little deeper will ya people?

I remember the days when I used tables ... here's a quick versus example:

 

3 nested tables (with 1 column)

<table>
<tr>
	<td>
		<table>
			<tr>
				<td>
					<table>
						<tr>
							<td></td>
						</tr>
					</table>
				</td>
			</tr>
		</table>
	</td>
</tr>
</table>

 

3 nested divs

<div>
<div>
	<div>
	</div>
</div>
</div>

 

Which one is faster ?

I know someone who has his own Web Design company who makes websites with tables, the annoying thing is that he seems to be doing well too! Shocking...

That's just snobbery in my opinion.

The average visitor doesn't care (or indeed even know) whether a site is laid out using CSS or tables. As long as the site meets all the relevant usability and usefulness criteria then it's all good.

 

I code all my site layouts in CSS now, but I wouldn't rule out using tables for layout in some circumstances. Fact is, tables display well across all different browsers & platforms, which is a big advantage over CSS. There are a lot of 'glitches' to deal with when using CSS for layouts, and the whole stylesheet has to be downloaded first before any content is displayed. For a small, simple site, it may just be easier and quicker to use tables, whereas for large sites, CSS should be used to reap the maintainability benefits.

 

The two different layout methods have their pro's and con's, and anyone who uses only CSS for everything is just as bad as someone who uses tables for everything. Use the most appropriate method for the job in hand!

...anyone who uses only CSS for everything is just as bad as someone who uses tables for everything. Use the most appropriate method for the job in hand!

 

I agree with about that much of what you have said, css should be used for layouts and tables should be used for tabular. So people who try to make tabular data into a css are just as bad as those that use tables for everything. Tables do have their uses but no they shouldn't be used for layout...so I will now back that up by replying to this remark:

 

 

That's just snobbery in my opinion.

The average visitor doesn't care (or indeed even know) whether a site is laid out using CSS or tables. As long as the site meets all the relevant usability and usefulness criteria then it's all good.

 

 

It effects all those that use screen readers. I think some web designers forget that it isn't just about how the site looks, yes a site will look the same be it a table or css but it will not function the same. So in no way is it snobbery to want all web designers to think about how a site works as well as how the site looks....I think it is just ignorance anyone who thinks designing for web is just about making something look nice with no concern about the end user.

I remember the days when I used tables ... here's a quick versus example:

 

<snip> 3 nested tables

 

<snip> 3 nested divs

 

Which one is faster ?

Probably the table example, because you will have a lot of CSS (for the DIV example) to make the structure, which you have left out of your comparison. This CSS will be in a separate file so there's the overhead of a 2nd HTTP request as well.

How many extra bytes do you think each character takes? Lets take a entire web layout coding as an example. You really think 1000 bytes saved is going to really speed up the load time? By what? 0.00000000001 tense of a second?

 

The fact is, that google counts every single character that it puts on it's page, every bit and every byte. Google technicians think in milliseconds. Shaving off a millisecond on the Google home page loading time is considered a major achievement. They have tried adding various content over the years and have found that the split second speed changes affect Google's usage. However, this is unfortunately done above and beyond the coding of the site.

 

As for your comment about the blind and illiterate, equal opportunities is extremely important. All government sites have to be built with this in mind, and many large corporations also do this. Pretty much all of the designers on WDF that are good at what they do design with these factors in mind and it isn't difficult. Use the right kind of measurements so that text can be enlarged, use proper contrast between background and foreground. Use alt tags. Use labels in your forms. Follow the W3C guidelines.

 

Designers who don't do these things come ten a penny. And sure they can make websites, but I'd take a designer who does their job properly to industry standards and w3c guidelines over a cowboy any day, in the same way I expect anyone who comes to look at my gas to be CORGI registered.

My argument wasn't about faster loading times ... but faster typing times. But hey ... let's talk loading time and how much can you save.

In the above nested example, the div example has 67 bytes and the table example has 387 bytes. You do the math ;)

 

The reason(s) why I use divs for layout:

- faster to type;

- cleaner code;

- easier to debug;

- sexier ... let's face it divs are sexier than tables;

 

And forgot to mention that a normal table declaration should be:

<table cellpadding="0" cellspacing="0" border="0">

Take that into account and now we have 516 bytes. Tables lose the match.

My guess is you don't know how to make cross browser sexy looking layouts using divs 8P

I've been trying to re-structure my site as well and from what I've been reading, namely from W3C (World Wide Web Consortium),CSS is the best way to layout web pages and if, like me, you want to keep up, there's no reason why you shouldn't learn it. You may try to argue that if tables work just as well, why shouldn't we use them. The thing is: they don't, according to most things I've read. The question is: is it worth the effort? My answer would be: yes, even if it's just to help a couple of blind people.

 

Now, I wonder if someone could help with following:

 

After I've re-done my homepage using CSS, what's the best way (not necessarily easier) to make links other pages without having to insert the menu, submenu, header and footer on all of them but keep those items in a separate file.

 

I've now learned about javascript and php but still haven't figured out how to do it.

 

Any ideas?

"The div example has 67 bytes and the table example has 387 bytes."

 

In your table example, the tables create structure and layout. In the DIV example, there is no structure or layout because you've left out all of the relevant CSS code. Try including the necessary CSS code for a fair example and factor in the overhead of the extra HTTP request to get the stylesheet.

Now, I wonder if someone could help with following:

 

After I've re-done my homepage using CSS, what's the best way (not necessarily easier) to make links other pages without having to insert the menu, submenu, header and footer on all of them but keep those items in a separate file.

 

I've now learned about javascript and php but still haven't figured out how to do it.

 

Any ideas?

 

You already have the answer to this question in your own thread? http://www.webdesignerforum.co.uk/index.ph...hl=php+includes

 

PHP includes are the best way to do this as scaz and dav have been helping you with.

Thanks ErisDS,

 

I was being thick!

 

 

This is what I've got at the moment:

 

<body>

<?php include("title.php"); ?>
<?php include("menu.php"); ?>

Bem vindos ao nosso site!

</body>

 

as you can see on this link: http://www.linhaviva.com/php/index.php

 

Would you now use <div> + CSS to position the various <?php include("menu.php"); ?> ?

Thanks ErisDS,

 

I was being thick!

 

 

This is what I've got at the moment:

 

<body>

<?php include("title.php"); ?>
<?php include("menu.php"); ?>

Bem vindos ao nosso site!

</body>

 

as you can see on this link: http://www.linhaviva.com/php/index.php

 

Would you now use <div> + CSS to position the various <?php include("menu.php"); ?> ?

 

There is something really funky going on with your source code... buts that another story...

 

I would ALWAYS recommend users put a reset stylesheet (especially learners). We all know browsers have weird default assigned to their body elements. To give you the best fighting chance of getting your design to work first time always use a reset style sheet.

 

I (now) always use:

 

  /** ********************************************************************************
**********************

 A bit of global resetting - courtesy of: [url="http://meyerweb.com/eric/thoughts/2008/01/15/resetting-again/"]http://meyerweb.com/eric/thoughts/2008/01/...esetting-again/[/url]

 ********************************************************************************
********************** **/

 html, body, div, span, applet, object, iframe, 
h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, 
abbr, acronym, address, big, cite, code, del, 
dfn, em, font, img, ins, kbd, q, s, samp, small,
strike, strong, sub, sup, tt, var, b, u, i, center, 
dl, dt, dd, ol, ul, li, fieldset, form, label, legend, 
table, caption, tbody, tfoot, thead, tr, th, td {
margin: 0; padding: 0; border: 0; outline: 0; font-size: 100%; vertical-align: baseline;}
 body {line-height: 1;}
 ol, ul {list-style: none;}
 blockquote, q {quotes: none;}
 :focus {outline: 0;}
 ins {text-decoration: none;}
 del {text-decoration: line-through;}
 /* tables still need 'cellspacing="0"' in the markup */
 table {border-collapse: collapse; border-spacing: 0;}

 

You should try it... make sure that it's imported into the html document *BEFORE* your layout.css style sheet

 

Good luck!

 

Dave

"The div example has 67 bytes and the table example has 387 bytes."

 

In your table example, the tables create structure and layout. In the DIV example, there is no structure or layout because you've left out all of the relevant CSS code. Try including the necessary CSS code for a fair example and factor in the overhead of the extra HTTP request to get the stylesheet.

 

 

I don't know if it's just me, but my printer hates tables but loves css. And that's just a printer... the css/ tables debate isn't about speed, code view or glory - it's about the user and displaying the content across multiple platforms and mediums. CSS just happens to be great at that. You seperate the content from the presentation stuff and you end up with an easy way to display your content for different people/ hardware. win win.

 

I love tables though - but they're not made for presentation. Let's leave it at that :)

The fact is, that google counts every single character that it puts on it's page, every bit and every byte. Google technicians think in milliseconds. Shaving off a millisecond on the Google home page loading time is considered a major achievement. They have tried adding various content over the years and have found that the split second speed changes affect Google's usage. However, this is unfortunately done above and beyond the coding of the site.

 

As for your comment about the blind and illiterate, equal opportunities is extremely important. All government sites have to be built with this in mind, and many large corporations also do this. Pretty much all of the designers on WDF that are good at what they do design with these factors in mind and it isn't difficult. Use the right kind of measurements so that text can be enlarged, use proper contrast between background and foreground. Use alt tags. Use labels in your forms. Follow the W3C guidelines.

 

Designers who don't do these things come ten a penny. And sure they can make websites, but I'd take a designer who does their job properly to industry standards and w3c guidelines over a cowboy any day, in the same way I expect anyone who comes to look at my gas to be CORGI registered.

 

Its a good mindset to have but making your page "tableless" is not the only way to achieve it.

 

All sites below includes tables in their layout

http://www.sba.gov/

http://www.google.com

http://www.cancer.gov

http://www.faa.gov

 

The list can go on and on and on.

 

You can have a site be WC3 XHTML Valid and still use tables.

 

Remember, were arguing about going "TABLELESS". Its a bit overrated if you ask me.

My argument wasn't about faster loading times ... but faster typing times. But hey ... let's talk loading time and how much can you save.

In the above nested example, the div example has 67 bytes and the table example has 387 bytes. You do the math ;)

 

The reason(s) why I use divs for layout:

- faster to type;

- cleaner code;

- easier to debug;

- sexier ... let's face it divs are sexier than tables;

 

 

My guess is you don't know how to make cross browser sexy looking layouts using divs 8P

 

 

No wrong guess. If I can learn C++, Python, Perl, PHP, SQL, CSS, and HTML, divs aren't too hard. Don't flatter yourself. But I don't design websites, I build and code them. Believe me, divs aren't too hard but for me its much easier just using tables most of the time. I just think those who claim people who don't go "tableless" are unprofessional and shouldn't deserve to run their own web design company are too high on tableless layouts. Lots of the arguments are weak.

 

And with your reasoning on why you use divs for layout, well, I guess thats just a matter of preference right? I build sites using tables and I don't really have to type much. I have an editor where all I do is click a couple of times and I can have a 2x2, or a 3x3, or a 4x5 table laid out for me.

 

Some men like their girls thin and others like their girls with meat. You find divs are sexier and I find tables are sexier.

I think divs are used a majority of the time because of accessibility.. Tables may be fine for a 5 page site.. but over that Divs are essential.

it means when you create a designed you don't have to apply a table on it, depending on what you want.

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.