![]() |
|
|
Tableless CSS web design? |
|
Novice Talker
Posts: 4
Name: Jati Seo
|
What is your opinion on the trend towards tableless CSS designs, and the idea that all formatting should be removed from the content.
I use some css for site design, but sometimes find the pressure to use all CSS can drag out completion time in order to hack my way around browser limitations. If you would share your well-qualified opinions, I would be most appreciative.
__________________
Offshore Outsourcing - Web Designer - Search Engine Optimization Service Provider in India jatiseo@gmail.com |
|
|
|
| Sponsored Links (We share ad revenue): |
|
|
Re: Tableless CSS web design? |
|
Average Talker
Posts: 20
|
if you use div boxes it's great you can't create a design based on tabels for my opinion
|
|
|
|
|
|
Re: Tableless CSS web design? | ||
|
Super Talker
Latest Blog Post:
Valid Markup and the W3C Posts: 113
Location: Northeastern PA
|
Quote:
Quote:
Anyway, I don't see CSS taking any longer than what inline HTML used to take me, in fact it takes less time because I'm globally assigning attributes instead of typing redundant in-line styles. When I first started using CSS it took me longer, but as I learned more and understood more my turnover time quickly dropped as I gained more experience.
__________________
2MonkeysTyping Webdesign Monkeybusiness |
||
|
|
|
|
|
Re: Tableless CSS web design? |
|
Super Moderator
![]() Posts: 5,542
Location: Tennessee
|
Here's an excellent presentation on why you should not use tables for layout:
Why tables for layout is stupid....
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !! "Using or working with IE is like having to wear a 1970's polyester suit with pantyhose and a girdle, to work everyday" |
|
|
|
|
|
Re: Tableless CSS web design? |
|
Post Impressionist
![]()
Latest Blog Post:
Welcome to Van SEO Design Posts: 8,048
Name: Steven Bradley
Location: Boulder, Colorado
|
I'm amazed that this conversation still comes up. I won't go into the benefits of an all css layout over a table-based layout. Abel offered some good reasons and the article on the other side of the link LnR posted has more.
However what I will say is if css is dragging out your completion time it's simply that you haven't taken the time to learn to use css to layout a site. There's a learning curve and in the beginning when you're first working to create all css layouts after having used tables it might take you longer. But it's not because of the css. I've been using css to layout my sites since shortly after I started building sites and if anything it's a lot faster than building them with tables. The issue isn't the css. It's that right now you're more familiar with using tables for layout. If you spend the time to get over the learning curve you'll see that css doesn't slow down development time at all. It speeds it up.
__________________
l Search Engine Friendly Web Design | Van SEO Design l Tips On Marketing, SEO, Design, and Development | TheVanBlog l Custom WordPress Themes |
|
|
|
|
|
Re: Tableless CSS web design? |
|
Super Moderator
![]() Posts: 5,542
Location: Tennessee
|
Agree 100% with Vangogh
![]() You might also take a look at this tutorial, it may help you break out of the table-layout frame of mind: www.cssslicingguide.com
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !! "Using or working with IE is like having to wear a 1970's polyester suit with pantyhose and a girdle, to work everyday" |
|
|
|
|
|
Re: Tableless CSS web design? |
|
Post Impressionist
![]()
Latest Blog Post:
Welcome to Van SEO Design Posts: 8,048
Name: Steven Bradley
Location: Boulder, Colorado
|
I'll also recommend Eric Meyer's book Eric Meyer on CSS. In the book he takes a few layouts that have been coded using tables and works through each until they're coded completely as a css layout. After reading the just that book I started building css driven sites.
Eric's full site is http://meyerweb.com/
__________________
l Search Engine Friendly Web Design | Van SEO Design l Tips On Marketing, SEO, Design, and Development | TheVanBlog l Custom WordPress Themes |
|
|
|
|
|
Re: Tableless CSS web design? |
|
Skilled Talker
Posts: 59
|
I cheat. You can make tableless tables. Using div's with a class name of what you'd normally called a table, tr, td etc... Here:
html HTML Code:
<div class="table"> <div class="th"> <div class="td">Name</div> <div class="td">Phone</div> <div class="td">City</div> <div class="td">State</div> <div style="clear: both;"></div> </div> <div class="tr"> <div class="td">Clark</div> <div class="td">785-555-0303</div> <div class="td">Smallville</div> <div class="td">Kansas</div> <div style="clear: both;"></div> </div> <div class="tr"> <div class="td">John</div> <div class="td">785-555-0303</div> <div class="td">Smallville</div> <div class="td">Kansas</div> <div style="clear: both;"></div> </div> <div class="tr"> <div class="td">Martha</div> <div class="td">785-555-0303</div> <div class="td">Smallville</div> <div class="td">Kansas</div> <div style="clear: both;"></div> </div> </div> css HTML Code:
.table {
width: 100%;
border: 1px solid #f00;
}
.table .th {
background-color: #f00;
color: #fff;
font-weight: bold;
border-bottom: 1px dotted #f00;
}
.table .tr:nth-child(odd) {
background-color: #eee;
}
.table .td {
float: left;
width: 23%;
padding-left: 2%;
}
http://www.bernzilla.com/item.php?id=134 And here is what it looks like: http://www.bernzilla.com/design/tables/table.html And it is pure css. No table tags or tr tags etc... This allows me to use my normal 'table logic thinking' but create tableless sites without all the extra time involved. I'm not a css guy so I take the shortcuts ![]() |
|
|
|
|
|
Re: Tableless CSS web design? | ||
|
Skilled Talker
Posts: 59
|
Quote:
Quote:
|
||
|
|
|
|
|
Re: Tableless CSS web design? |
|
Extreme Talker
Posts: 216
Name: Abel Mohler
Location: Asheville, North Carolina USA
|
The truth is, the data that you represented above properly belonged in a table, so there was nothing necessarily right about making a div behave like a table just to be "tableless". Tables are great for tabular data, as that is what they were originally intended to hold.
Making an entire website without the use of tables is a rather large discussion. I suggest you start here: http://www.alistapart.com/articles/practicalcss/ |
|
|
|
|
|
Re: Tableless CSS web design? |
|
Skilled Talker
Posts: 59
|
the alistapart article and all pages it links to in the article are informative for creating a css tables layout, but still nowhere does it show an actual example of implementing structured tabular data in a css (non-table) format.
I apologize if I've gotten us off topic here. Last edited by Inet411 : 05-10-2008 at 10:51 PM. |
|
|
|
|
|
Re: Tableless CSS web design? | |
|
Skilled Talker
Posts: 59
|
Quote:
Sorry I didn't entirely read what you had wrote. I also believe tabular data should be in tables. But now that we've pretty much ventured into a completely tables site, I pose the question: how would you show tabular data in a css format without actually using tables (and since my example above is labeled messy, how can it be done). |
|
|
|
|
|
|
Re: Tableless CSS web design? |
|
Webmaster Talker
Posts: 584
Location: Kokkola, Finland
|
tables ARE for tabular data
![]() |
|
|
|