![]() |
positioning divs with transition
1 Attachment(s)
I am not to sure if transition is required but what i am trying to do is to echo out the results one on each side. Each div may have a different height depending on the length of the content but as for width they are are 310px inside a 630px container. You can see much more clearly in the attachment (boxes.png) what i am trying to achieve. I dont think it can be done with just the float property. Any help would be great!
|
No, floats won't work for this.
Assuming you're using PHP, I'd have thought the easiest was would be to populate two variables, say $left and $right, alternately with your results (instead of echoing them), and then echo $left and $right into your html at the appropriate place - this way you've split your content into two columns within your container. |
Code:
$query = "SELECT quote, author FROM $topic LIMIT $start,$records_per_page"; |
actually after some thinking i can get it working if its possible to have an if statement that works over 2 php sections. Ill see if that works and let you know how it goes
Code:
<?phpEdited code example to show a bit better what i need. Is it possible? |
Something like:
PHP Code:
|
Code:
$left .= <div class="quotepost"><div class="textdiv"><q class="quotetext">.$row['quote']</q></div><p class="quoteauthor">-.$row['author']</p></div><br/>; |
Try:
PHP Code:
|
| All times are GMT +1. The time now is 09:47 AM. |
Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.