This is a discussion on "stretch div with no content" within the Web Page Design section. This forum, and the thread "stretch div with no content are both part of the Design Your Website category.
|
|
|
|
|
![]() |
||
stretch div with no content
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
#1
|
|||
|
|||
|
stretch div with no content
Hi,
This page: xxxxx has a div containing the mic stand image on the left, and another holding the images on the right. Is it possible to have the left div stretch vertically to match the right one? Also, With the image layout, can I have the second row of images clear the row above it, so there's 5 images on each row?? Thanks, Nathan. Last edited by nate2099; Jul 14th, 2007 at 10:45. |
|
|
|
#2
|
|||
|
|||
|
Re: stretch div with no content
First question) Look into the Faux Columns method
Second question) You really shouldn't be using the paragraph element (<p>) for those boxes ... the aren't paragraphs. I would wrap them individually in <div> and float them. To clear float for this type of thing I would add a clearing div where you want to change lines
Last edited by karinne; Jul 13th, 2007 at 12:24. |
|
#3
|
|||
|
|||
|
Re: stretch div with no content
I believe if you add a large enough height to each div.float, you'll get what you want:
|
|
#4
|
|||
|
|||
|
Re: stretch div with no content
Thanks for that, the faux coloumn method works a treat!!
For the clear div, do you mean I should do somethig like Quote:
Setting the height does work, but considering there may be up to 12 lines of text with each pic, I'd prefer if they were only as high as they needed to be!! |
|
#5
|
|||
|
|||
|
Re: stretch div with no content
Quote:
Quote:
|
![]() |
| Tags |
| stretch div vertically, no content |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| [SOLVED] How to get my footer to stretch | Gav | Web Page Design | 3 | Dec 16th, 2007 14:15 |
| Div stretch to bottom in IE6 | Aso | Web Page Design | 16 | Nov 27th, 2007 12:49 |
| [SOLVED] wont stretch | lostyboy | Web Page Design | 2 | Oct 18th, 2007 14:25 |
| Site Stretch with Content? | CodyFunderburg | Web Page Design | 4 | Nov 20th, 2006 14:58 |
| CSS stretch footer vertically? | uqwebdesign | Web Page Design | 2 | Oct 24th, 2006 20:09 |