Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

CSS Forum


You are currently viewing our CSS Forum as a guest. Please register to participate.
Login



Reply
CSS Layouts confusion!
Old 01-05-2007, 03:33 PM CSS Layouts confusion!
Junior Talker

Posts: 2
Trades: 0
Ok, basically ive been using tables for the last few years perfectly happily until CSS comes in and takes over modern layouts design!

Im now confused as to which to go for, im very reluctant to switch entirely to CSS as ive tried using it properly and still far prefer tables.

Ive got a few questions:

- Is it ok to still use tables? Ive noticed a fair few big sites still do.
- whats best to use when designing with CSS- layers or DIV tags or both? (im using Dreamweaver 8 by the way).
- is it a good idea to combine div tags (rather than layout cells) with layout tables, such as site like Amazon do?
- are people beginning to frown upon tables as frames are now frowned upon?

Thanks
Adam

Last edited by adam h; 01-05-2007 at 03:35 PM..
adam h is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 01-05-2007, 03:39 PM Re: CSS Layouts confusion!
karinne's Avatar
Extreme Talker

Posts: 197
Location: Quebec, Canada
Trades: 0
here are a few links I've gathered over the years on "How to use CSS for layouts". This list has links to information on "why" you should use DIV/CSS for layouts and "how" to use them with tutorials and code.

"why"
A better way to build your website
Why tables for layout is stupid: problems defined, solutions offered
Ten ways to speed up the download time of your web pages
Nested Tables: About the (ab)use of tables as layout tools in webpages.
Why Tables Are Bad (For Layout) Compared to Semantic HTML + CSS
Why go table free?
Why avoiding tables (for layout) is important

"how"
BonRouge's layouts
pmob.co.uk layouts
The Noodle Incident: CSS Boxes
glish.com - CSS Layout technique
bluerobot.com - Layout Reservoir
Alistapart - In Search of the Holy Grail
Alistapart - Creating Liquid Layouts with Negative Margins
Alistapart - Faux Columns


There's a good start.
__________________

Please login or register to view this content. Registration is FREE
-
Please login or register to view this content. Registration is FREE
-
Please login or register to view this content. Registration is FREE
-
Please login or register to view this content. Registration is FREE
-
Please login or register to view this content. Registration is FREE


Getting on the Web Standards band-wagon? Get these books -
Please login or register to view this content. Registration is FREE
and
Please login or register to view this content. Registration is FREE


Takin' in the view from the outside. Feeling like the underdog. Watching through the window I'm on the outside. Living like the underdog.
-Dream Theater
karinne is offline
Reply With Quote
View Public Profile Visit karinne's homepage!
 
Old 01-05-2007, 03:59 PM Re: CSS Layouts confusion!
LadynRed's Avatar
Defies a Status

Posts: 10,016
Location: Tennessee
Trades: 0
Quote:
- Is it ok to still use tables? Ive noticed a fair few big sites still do.
Tables should be used for tabular data, not the overall layout. Lots of those big sites use content management systems that only spew table-based layouts.
Quote:
- whats best to use when designing with CSS- layers or DIV tags or both? (im using Dreamweaver 8 by the way).
They are the same thing ! "Layers" was the old Netscape connotation and it really needs to DIE. DW still refers to DIVs as 'layers', hopefully they'll stop that nonsense soon.

Quote:
- is it a good idea to combine div tags (rather than layout cells) with layout tables, such as site like Amazon do?
That depends on your layout. As I said above, tables for overall layout are no longer the recommended or modern way to build sites.

Quote:
- are people beginning to frown upon tables as frames are now frowned upon?
Depends on who you talk to. If you ask people like me and a few others here who are/have moved onward with CSS-based layouts and semantic markup, tables for layout are taboo.

In addition to the links above, I would suggest you cruise thru CSS Zen Garden -www.csszengarden.com and have a look at what can be accomplised with just good markup and CSS - no tables ! I would also suggest joining CSS-Discuss.org list, they can and will help you and the WIKI there is an excellent source.
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Old 01-05-2007, 04:18 PM Re: CSS Layouts confusion!
Banned

Posts: 905
Name: Travel Agent
Trades: 0
Quote:
Originally Posted by LadynRed View Post
Depends on who you talk to. If you ask people like me and a few others here who are/have moved onward with CSS-based layouts and semantic markup, tables for layout are taboo.
Couldn't agree with you more!
travelagent is offline
Reply With Quote
View Public Profile
 
Old 01-05-2007, 05:55 PM Re: CSS Layouts confusion!
Junior Talker

Posts: 2
Trades: 0
well thanks guys but im still very reluctant to switch to css when tables are so much easier to implement
adam h is offline
Reply With Quote
View Public Profile
 
Old 01-05-2007, 08:08 PM Re: CSS Layouts confusion!
Banned

Posts: 905
Name: Travel Agent
Trades: 0
Adam -- tables might be easier for some to implement, but CSS is far easier to code and control your site ... try to learn CSS, as you'll see how fast and easy it is compared to the old tables standard -- today's Web standards are doing away with tables and going the way of CSS.
travelagent is offline
Reply With Quote
View Public Profile
 
Old 01-05-2007, 09:04 PM Re: CSS Layouts confusion!
LadynRed's Avatar
Defies a Status

Posts: 10,016
Location: Tennessee
Trades: 0
One of the biggest advantages (besides streamlining your pages) with CSS is site maintenance and redesign. With tables and nested tables, you've got a mess of stuff to go thru if you want to change anything and it is compounded if you have a large site with lots of pages.

With CSS, you can make changes to an entire site, no matter how many pages you have, by changing just a few lines in a CSS file. So the time savings can be HUGE.

I would urge you to read the article linked above titled "Why Tables for Layout is Stupid", it will give you all the reasons why CSS is better for layout than the old 1995-ish tables.
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Old 01-09-2007, 07:33 AM Re: CSS Layouts confusion!
Average Talker

Posts: 18
Trades: 0
Well i was stuck in the same dilemma as you and took me a while to find out what was the best way for my CSS layouts; i chose to opt for the "box" and absolute positioning and i am pleased with it, i have also cross-browser checked the test pages with browserhots.org and they look ok. I have to now admit that i have been won over with CSS, even though in the beginning it was a pain in the backside to learn, it all came to me in the end and i am getting the hang of it.

My test pages are as follows:

http://www.spiritfolk.com/test.htm and http://www.spiritfolk.com/template.htm




Quote:
Originally Posted by adam h View Post
Ok, basically ive been using tables for the last few years perfectly happily until CSS comes in and takes over modern layouts design!

Im now confused as to which to go for, im very reluctant to switch entirely to CSS as ive tried using it properly and still far prefer tables.

Ive got a few questions:

- Is it ok to still use tables? Ive noticed a fair few big sites still do.
- whats best to use when designing with CSS- layers or DIV tags or both? (im using Dreamweaver 8 by the way).
- is it a good idea to combine div tags (rather than layout cells) with layout tables, such as site like Amazon do?
- are people beginning to frown upon tables as frames are now frowned upon?

Thanks
Adam
Dave_G is offline
Reply With Quote
View Public Profile
 
Old 01-10-2007, 07:46 AM Re: CSS Layouts confusion!
Skilled Talker

Posts: 94
Trades: 0
i agree, css is easy, i was having a hard time undderstand some stuff, but i posted on here and i got help, now i can make layout with CSS.
hellhound121 is offline
Reply With Quote
View Public Profile
 
Old 01-12-2007, 08:22 PM Re: CSS Layouts confusion!
tonya's Avatar
Ultra Talker

Posts: 485
Location: world traveller based in UK
Trades: 0
I read all these comments with interest. I am a huge fan of CSS but still cant get used to moving away from using a table to define my main layout. Mostly because one of the things I like is to eb able to use a set width & center my layout neither of which I can get to successfully work in CSS - frustratingly.

Once I have these things sorted out I will happily switch.

I recently designed a site completely in CSS [this is its demo stage still have to sort out optimisation of graphics, links, proof read etc B4 launch]. The biggest problem I had was the footer. To get the footer where I wanted it I had to create a seperate CSS sheet for every page because the footer was in a slightly different place & with absolute positioning it would not simply float underneath the last DIV tag. I have read two or 3 excellent books now all of which were mostly useless as I already knew the basics of designing with CSS & just wanted layout & then they did not solve this issue.

When they introduce centering to div tags & layout I will be really happy!!! Until then I am still stuck in table land trying to solve a puzzle!
__________________
Tonya

::
Please login or register to view this content. Registration is FREE
::
Please login or register to view this content. Registration is FREE
tonya is offline
Reply With Quote
View Public Profile Visit tonya's homepage!
 
Old 01-12-2007, 09:10 PM Re: CSS Layouts confusion!
LadynRed's Avatar
Defies a Status

Posts: 10,016
Location: Tennessee
Trades: 0
Quote:
one of the things I like is to eb able to use a set width & center my layout neither of which I can get to successfully work in CSS
Actually, that's pretty easy with CSS. I gave you the exact steps in your other post.

As for the footer problem, there are several ways to make a footer stay below the rest of your content and it does not entail any absolute positioning. I think I gave you a link to one method in your other post too.
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Old 01-14-2007, 03:49 PM Re: CSS Layouts confusion!
DotHQ's Avatar
Super Talker

Posts: 104
Trades: 0
I hate to admit it but, I tried to use .css instead of tables but never had any luck.

Anyone have sample code for a 3 column layout?
__________________

Please login or register to view this content. Registration is FREE
Internet Marketing Forum New

Please login or register to view this content. Registration is FREE
Off Topic Forum FUN

Please login or register to view this content. Registration is FREE
Hosting, vBulletin Instalations & more ...
DotHQ is offline
Reply With Quote
View Public Profile
 
Old 01-14-2007, 11:50 PM Re: CSS Layouts confusion!
empressreborn's Avatar
Skilled Talker

Posts: 59
Name: Jenn
Location: Stonewood, WV
Trades: 0
As a newbie to the site, I would like to add that I've just started self-teaching myself CSS, and the more I read the more I want to throw a party! Using tables for layout may be easier in some aspacts, but it is so limited in what it can let you do. (Not to mention a pain to tweak.) I quickly realized that to build websites that are flexible (remember, time is money!) and that can offer a really awesome design, CSS is the way to go.

I'm intelligent, but I need plain instructions when I learn technical items. So I do what I always do: I bought the CSS Web Design for Dummies. (Yes, I said that proudly!) Because those Dummies books allow me to really grasp the fundamentals, and then I can build on from there.

I'm with LadynRed...tables were never meant to be used for layout, and they need to go back to whence they came!
__________________

Please login or register to view this content. Registration is FREE


empressreborn is offline
Reply With Quote
View Public Profile Visit empressreborn's homepage!
 
Old 01-15-2007, 12:42 PM Re: CSS Layouts confusion!
LadynRed's Avatar
Defies a Status

Posts: 10,016
Location: Tennessee
Trades: 0
Quote:
Anyone have sample code for a 3 column layout?
Pull down some 3-column layouts from here and learn what you can:
http://www.openwebdesign.org/browse.php
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Old 01-15-2007, 10:39 PM Re: CSS Layouts confusion!
Tom_M's Avatar
Ultra Talker

Posts: 250
Name: Tom Maurer
Location: Pennslvania, USA
Trades: 0
I too am new to CSS layouts. I was a dedicated table man myself. I think the biggest thing to understand is the box model: what it is and how it works. Honestly, a 3 column CSS layout with fixed widths is so much easier once you understand the box model and floating.
Tom_M is offline
Reply With Quote
View Public Profile
 
Old 01-16-2007, 06:04 AM Re: CSS Layouts confusion!
tonya's Avatar
Ultra Talker

Posts: 485
Location: world traveller based in UK
Trades: 0
Hi Guys - ok I have spent 3 nights testing various example codes out to try & get this sorted out. I have at last managed to get something close tro what I want with one or two tweeks I will be there.

The problem I had was centering the code primarily. Then adjusting footer under various columns of different hights. Then getting one colum to appear to split into cells.

I understand the box CSS very well as I have actually used this for some time to format my tables. Eg padding, borders, margins etc etc

Thanks to ladyNRed I have now sorted out the fixed width and center issue (at least in IE since the fix does not work in firefox) and just have a few more tweeks. I will post the code up so you can all see!

First I need to get baby dressed before he wrecks the office trying to climb the filing cabinet and brains himself on the desk! men are soooo demanding - bless him lol .
__________________
Tonya

::
Please login or register to view this content. Registration is FREE
::
Please login or register to view this content. Registration is FREE
tonya is offline
Reply With Quote
View Public Profile Visit tonya's homepage!
 
Old 01-16-2007, 02:31 PM Re: CSS Layouts confusion!
LadynRed's Avatar
Defies a Status

Posts: 10,016
Location: Tennessee
Trades: 0
FF doesn't need a "fix", you just need the margin: 0 auto to make FF center, provided you also give the element you're centering a width.
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Old 01-18-2007, 08:26 PM Re: CSS Layouts confusion!
tonya's Avatar
Ultra Talker

Posts: 485
Location: world traveller based in UK
Trades: 0
Hi there I have tried tweeking the code - check this post for my latest round of problems. Thanks to LadyNRed my learning curve is peaking upwards. I keep solving something only to find I have new questions. I do hope once I get all these issues sorted I will be awarded some sort of coloured belt as testimony to my CSS battles. I am aiming for the black belt of course - the master guru - or attempting anyway at CSS layouts... LOL.

For the moment I am still tearing my hair out !!! Or maybe I am simply looking for tough answers when the solution is simple ???

http://www.webmaster-talk.com/css-fo...tml#post336646
__________________
Tonya

::
Please login or register to view this content. Registration is FREE
::
Please login or register to view this content. Registration is FREE
tonya is offline
Reply With Quote
View Public Profile Visit tonya's homepage!
 
Reply     « Reply to CSS Layouts confusion!
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.52519 seconds with 12 queries