Div Layout

This is a discussion on "Div Layout" within the Web Page Design section. This forum, and the thread "Div Layout are both part of the Design Your Website category.


 Subscribe in a reader

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

Notices




Reply
 
LinkBack (1) Thread Tools
  1 links from elsewhere to this Post. Click to view. #1  
Old Dec 20th, 2005, 23:13
Junior Member
Join Date: Dec 2005
Location: Dublin
Posts: 30
Thanks: 0
Thanked 0 Times in 0 Posts
Div Layout

Hey, Im having a problem positioning some of my divs. See attached gif, What is the best way to position/float divs 4,5 and 6?
Attached Images
File Type: gif div_layout2.gif (7.5 KB, 71 views)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote

  #2  
Old Dec 20th, 2005, 23:16
Reputable Member
Join Date: Sep 2005
Location: Canada, BC
Age: 24
Posts: 239
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Div Layout

put 1,4,5, and 6 all into one div.
Or postion your div's absolutely
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3  
Old Dec 21st, 2005, 01:17
herkalees's Avatar
Highly Reputable Member
Join Date: Jul 2005
Location: Massachusetts, USA
Age: 87
Posts: 576
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Div Layout

using position: is the only way. For instance, 4 can be cleared left to get under one, because then it will get under 2... so using a combo of absolute and relative positioning will be the only way.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #4  
Old Dec 21st, 2005, 03:37
Reputable Member
Join Date: Sep 2005
Location: Canada, BC
Age: 24
Posts: 239
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Div Layout

Quote:
Originally Posted by herkalees
using position: is the only way. For instance, 4 can be cleared left to get under one, because then it will get under 2... so using a combo of absolute and relative positioning will be the only way.
Lies!
HTML: Select all
<div style="width: 900px;">
<div style="float:left;">
<div style="background-color: red; width: 361px; height: 128px;">background-color: red; width: 361px; height: 128px;</div>
<div style="background-color: yellow; width: 361px; height: 50px;">background-color: yellow; width: 361px; height: 50px;</div>
<div style="background-color: red; width: 181px; height: 163px; float: left;">background-color: red; width: 181px; height: 163px; float: left;</div>
<div style="background-color: green; width: 180px; height: 163px; float: left;">background-color: green; width: 180px; height: 163px; float: left;</div>
</div>
<div style="background-color: blue; width: 187; height: 341px; float: left;">background-color: blue; width: 187; height: 341; float: left;</div>
<div style="background-color: green; width: 352; height: 341px; float: left;">background-color: blue; width: 187; height: 341; float: left;</div>
</div>
<div style="background-color: yellow; width: 900px; clear: both;">background-color: yellow; width: 900px; clear: both;</div>
Done without any postioning at all...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #5  
Old Dec 21st, 2005, 03:42
herkalees's Avatar
Highly Reputable Member
Join Date: Jul 2005
Location: Massachusetts, USA
Age: 87
Posts: 576
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Div Layout

You win
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #6  
Old Dec 21st, 2005, 03:43
Reputable Member
Join Date: Sep 2005
Location: Canada, BC
Age: 24
Posts: 239
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Div Layout

I know ^_^
But the main problem with my code is it ends up being very inflexable very quick, which I don't like. So personaly I would still go with the rel/abs postioning method
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #7  
Old Dec 21st, 2005, 14:19
Reputable Member
Join Date: Jul 2005
Location: Indiana, USA
Age: 29
Posts: 153
Blog Entries: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Div Layout

Phoenix, what makes your code inflexible?
Last Blog Entry: Whats in a name? (Feb 20th, 2008)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #8  
Old Dec 21st, 2005, 17:48
Reputable Member
Join Date: Sep 2005
Location: Canada, BC
Age: 24
Posts: 239
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Div Layout

I used something like it for another site I did, when I needed to make a change it quickly fell apart and I found useing absolute postioning much easier to update when I needed to make changes.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Tags
div, layout

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

LinkBacks (?)
LinkBack to this Thread: http://webforumz.com/web-page-design/4500-div-layout.htm
Posted By For Type Date
Div Layout This thread Refback Oct 22nd, 2006 04:16

Similar Threads
Thread Thread Starter Forum Replies Last Post
CSS layout casho Web Page Design 4 Feb 10th, 2008 13:59
Layout using CSS Madball Web Page Design 5 Nov 7th, 2007 09:41
New to CSS Layout tapster Web Page Design 15 Oct 15th, 2007 10:18
Fluid layout - IE6 clichés the layout when resizing cyberseed Web Page Design 7 Jun 16th, 2007 05:14
What makes a layout a good layout? Miles Lombardi Graphics and 3D 4 Jul 26th, 2005 03:22


All times are GMT. The time now is 06:59.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization 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