more box model problems

This is a discussion on "more box model problems" within the Web Page Design section. This forum, and the thread "more box model problems 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 Jun 24th, 2008, 22:06
Junior Member
Join Date: Apr 2008
Location: Glasgow
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
more box model problems

hey guys

i have a container layer which has align=right.

it has two layers inside, one floated to the left colum and one sits (which aligns to the right).

when there's not enough content in the right (main) layer but still lots in the left column, the container is only the height of the main right aligned layer and the content for the left layer stretches down past the bottom.

can anyone point me in the right direction for sorting it out?
Reply With Quote

  #2 (permalink)  
Old Jun 25th, 2008, 11:32
Aso's Avatar
Aso Aso is online now
Chief Moderator

SuperMember
Join Date: Oct 2007
Location: UK
Posts: 1,140
Blog Entries: 2
Thanks: 5
Thanked 39 Times in 36 Posts
Re: more box model problems

You'll need to use a technique known as faux columns.

This repeats an image vertically down the main container which gives the appearance of 'same-height' columns.
Last Blog Entry: The Google Misconception (Feb 3rd, 2008)
Reply With Quote
  #3 (permalink)  
Old Jun 25th, 2008, 21:26
moojoo's Avatar
Moderator
Join Date: Aug 2005
Location: Texas
Posts: 2,020
Blog Entries: 1
Thanks: 0
Thanked 33 Times in 33 Posts
Re: more box model problems

You will also need a clearing div if you are using floats, this will clear the floats and keep the container bottom below the floated columns regardless of height of the float.

Something like:
Code: Select all
.clearing {height:0; overflow:hidden; margin:-1px 0 0 0; clear:both;}
and right before the closing </div> of you container put:
Code: Select all
<div class="clearing">&nbsp;</div>
Last Blog Entry: Apps every Mac based web dev should consider (Jul 10th, 2008)
Reply With Quote
  #4 (permalink)  
Old Jul 13th, 2008, 23:45
Junior Member
Join Date: Apr 2008
Location: Glasgow
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Re: more box model problems

cool, i think i understand - thanks!

whilst im here, i seem to be having difficulty adding more than one set of floated items in a nest.

i have a container layer, with a left colum floated to the left with my links, and a right column floated to the right with the main content.

when i try to float content in the right layer to the left (for example, a tableless form) it wont appear in the right content layer until after the left navigation layer content is finished.



how do i get around that?
Reply With Quote
  #5 (permalink)  
Old Jul 14th, 2008, 23:08
Junior Member
Join Date: Apr 2008
Location: Glasgow
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Re: more box model problems

i'll try and get a test page up for an example
Reply With Quote
Reply

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
box model problem artisites Web Page Design 8 Apr 3rd, 2008 20:15
Box Model Hack? jwalker80 Web Page Design 4 Feb 2nd, 2007 02:10
Fluid box - without box model satoshy Web Page Design 5 Aug 3rd, 2005 03:24


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


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