questions about column and row div layouts

This is a discussion on "questions about column and row div layouts" within the Web Page Design section. This forum, and the thread "questions about column and row div layouts are both part of the Design Your Website category.



Go Back   Webforumz.com > Main Forums > Design Your Website > Web Page Design

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Sep 5th, 2006, 02:17
Junior Member
Join Date: Jul 2006
Location: NY, USA
Age: 39
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Question questions about column and row div layouts

I've been having some trouble creating CSS-based layouts that include 3 columns, a header, and a footer. For example, in what should be a fairly simple layout (here):
http://www.etvlog.com/log/inProgress...herlayout.html

... I can't figure out why the top of the "right hand column" doesn't line up by default with the other two columns. I've even given it additional width, in case the borders or margins were adding pixels, but that doesn't seem to be the issue.

In order to address an issue where footers don't clear multiple body columns properly, I've added a hack from this page:
http://www.shauninman.com/plete/2006...nline-absolute

... but I wonder whether a simpler and more elegant solution exists. I'd also love to know why this actually happens.

A few other questions, such as: how would I add some "cell" objects to the middle column, without skewing the rest of the layout? For instance, if I wanted the middle column to contain something like a two-row table, with two cells in the top row and one cell in the bottom row?

Similarly, how would one adding two "rows" to the header, and having one column spanning both rows on one side?

Perhaps the answer is to think of each of these "cells" as a separate div? But it seems that things could get even uglier that way.

Thanks for sharing your thoughts.
Reply With Quote

  #2 (permalink)  
Old Sep 5th, 2006, 06:30
Ryan Fait's Avatar
SuperMember

SuperMember
Join Date: May 2006
Location: Las Vegas
Posts: 3,786
Thanks: 0
Thanked 0 Times in 0 Posts
Re: questions about column and row div layouts

http://css.maxdesign.com.au/floatuto...torial0901.htm
Reply With Quote
  #3 (permalink)  
Old Sep 5th, 2006, 13:00
Junior Member
Join Date: Jul 2006
Location: NY, USA
Age: 39
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Re: questions about column and row div layouts

Thanks... but that site/layout does not include a footer, nor any cell layouts within a column or row. It is a nice layout, and I actually used that as one of my starting points for this project, but things stopped working very quickly once I tried to insert a footer, add row and column "cells", and manipulate values. Unfortunately, it doesn't help with what I'm trying to do in this layout.

I'd appreciate your additional thoughts though.

Thank you.
Reply With Quote
  #4 (permalink)  
Old Sep 5th, 2006, 18:15
Ryan Fait's Avatar
SuperMember

SuperMember
Join Date: May 2006
Location: Las Vegas
Posts: 3,786
Thanks: 0
Thanked 0 Times in 0 Posts
Re: questions about column and row div layouts

Are you looking at the site's layout or the tutorial on the site?
Reply With Quote
  #5 (permalink)  
Old Sep 5th, 2006, 18:31
Junior Member
Join Date: Jul 2006
Location: NY, USA
Age: 39
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Re: questions about column and row div layouts

First, my mistake: at first, I thought you had linked a different site. Not sure why; must have been an "operator error". My apologies.

Turns out that "clear:both;" from that tutorial is likely just what I am looking for. That's an informative, well-written piece. Thank you.

Any additional advice on dividing a individual div into "cells" to similate a table layout, without affecting the layout of the entire document? I assume there's some "float" and "clear" technique involved, but when I've tried this, I couldn't reproduce the effect I wanted without affecting other floats outside that particular div and destroying the overall page layout.
Reply With Quote
  #6 (permalink)  
Old Sep 5th, 2006, 19:34
Ryan Fait's Avatar
SuperMember

SuperMember
Join Date: May 2006
Location: Las Vegas
Posts: 3,786
Thanks: 0
Thanked 0 Times in 0 Posts
Re: questions about column and row div layouts

I'm not sure what you're trying to do. A div is a cell of sorts, but each div is independent. There is no way to get a div to respond to the dimensions of another.

When you migrate to CSS from tables, you need to overcome the mentality that websites should be divided into cells.
Reply With Quote
  #7 (permalink)  
Old Sep 5th, 2006, 19:38
Ryan Fait's Avatar
SuperMember

SuperMember
Join Date: May 2006
Location: Las Vegas
Posts: 3,786
Thanks: 0
Thanked 0 Times in 0 Posts
Re: questions about column and row div layouts

Oh, and if you're using CSS to display raw data, it should be in a table. I've seen some people so thoroughly disgusted with tables that they used groups of unordered lists to simulate a table. Tables aren't evil, they just don't have a place in website layouts.

I'm probably going on a stray tangent with this post...
Reply With Quote
  #8 (permalink)  
Old Sep 7th, 2006, 02:06
Junior Member
Join Date: Jul 2006
Location: NY, USA
Age: 39
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Re: questions about column and row div layouts

Quote:
Originally Posted by ryanfait View Post
I'm not sure what you're trying to do. A div is a cell of sorts, but each div is independent. There is no way to get a div to respond to the dimensions of another.
That is indeed what I'm trying to do: organize content into "cells" without using labels. I think I need to shift gears and visualize the layout in another way.

Quote:
Originally Posted by ryanfait View Post
When you migrate to CSS from tables, you need to overcome the mentality that websites should be divided into cells.
Yes, I do. I most easily visualize a layout as a collection of rows and columns. Again, I need to rethink this approach.

Quote:
Originally Posted by ryanfait View Post
Oh, and if you're using CSS to display raw data, it should be in a table. I've seen some people so thoroughly disgusted with tables that they used groups of unordered lists to simulate a table. Tables aren't evil, they just don't have a place in website layouts.

I'm probably going on a stray tangent with this post...
No, not really. "table" is a valid HTML element and has a valid purpose. But then there could be a discussion on the definition of "raw data", and why some people include a series of links (i.e., a navbar) among this category.

By the way, I'm not sure why, but the "instant email notification" feature of this forum seems to work sporadically at best: I was notified of only one of your replies, even though I read the reply immediately afterward. In any case, I'm very glad for the help.
Reply With Quote
  #9 (permalink)  
Old Sep 7th, 2006, 02:47
Ryan Fait's Avatar
SuperMember

SuperMember
Join Date: May 2006
Location: Las Vegas
Posts: 3,786
Thanks: 0
Thanked 0 Times in 0 Posts
Re: questions about column and row div layouts

Quote:
No, not really. "table" is a valid HTML element and has a valid purpose. But then there could be a discussion on the definition of "raw data", and why some people include a series of links (i.e., a navbar) among this category.
But links are lists, not raw data. Data as in a table like this (compliments of the W3C):
Attached Images
File Type: gif mergedcells.gif (2.5 KB, 38 views)
Reply With Quote
  #10 (permalink)  
Old Dec 16th, 2006, 13:45
Junior Member
Join Date: Jul 2006
Location: NY, USA
Age: 39
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Re: questions about column and row div layouts

Quote:
Originally Posted by ryanfait View Post
But links are lists, not raw data. Data as in a table like this (compliments of the W3C):
Links are most often lists (as in navigational lists/navbars), but they can be returned as raw "data" in part of a data set.

BTW, by "No, not really", I meant that I didn't think your post was headed on a stray tangent. Your response was related, and I appreciate your perspective.

Thanks.
Reply With Quote
  #11 (permalink)  
Old Dec 16th, 2006, 23:37
Ryan Fait's Avatar
SuperMember

SuperMember
Join Date: May 2006
Location: Las Vegas
Posts: 3,786
Thanks: 0
Thanked 0 Times in 0 Posts
Re: questions about column and row div layouts

Okay. Don't forget lists are way easier to read and use less code though! They're also best for accessibility where navigation is concened.
Reply With Quote
Reply

Tags
questions, column, row, div, layouts

Thread Tools

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 On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
opinion on layouts motormaniac Website Planning 9 Mar 13th, 2008 04:05
Liquid Layouts and Max-Width Sporky Web Page Design 1 Jun 4th, 2007 21:33
Testing out CSS/DIV layouts Moonlilly Web Page Design 9 Apr 3rd, 2007 21:16
% or px when defineing DIV layouts surfthegecko Web Page Design 10 Dec 13th, 2005 23:18
..copy data from column A in Table A to column B in Table B? gecastill Databases 10 Jun 23rd, 2005 18:27


All times are GMT. The time now is 20:37.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43