Jump to content


Photo

Problem structuring with <div> ?


  • Please log in to reply
2 replies to this topic

#1 Solarpitch

Solarpitch
  • Members
  • PipPipPip
  • Advanced Member
  • 708 posts
  • LocationDublin, Ireland

Posted 29 October 2006 - 01:05 PM

Hey Guys,

I am having a problem with sorting results using <div>. I have the following code...

echo "
 <div class='container'>
 <div class='section'>$section</div>
 <div class='addtext'>$addtext</div>
 
  <div class='image'><img src='Design%20Folder/r7.jpg' alt='image' /></div>
  
  <div class='offwant'>$offwan</div>
  
  <div class='price'>$price</div>
  <div class='phone'>$phone</div>
 </div>";

If you look at http://xs.to/xs.php?...0&f=example.gif ... Currently my code is displaying like the top image but how could I get it to format like the bottom one?

I 've messed around with it for aged but still no joy!

Cheers,
Gerard.
Welcome to 9AM Monday, the furthest point away from 5PM Friday.

#2 wildteen88

wildteen88
  • Staff Alumni
  • Advanced Member
  • 10,482 posts
  • LocationUK, Bournemouth

Posted 29 October 2006 - 01:41 PM

I had a little play and came up with this

That is as close as I could get it to the bottom image. You can use the code if you wish.

#3 Solarpitch

Solarpitch
  • Members
  • PipPipPip
  • Advanced Member
  • 708 posts
  • LocationDublin, Ireland

Posted 29 October 2006 - 01:54 PM

Man thats brilliant! Thanks very much . . finally I can move on in my application! Thanks again :)

Gerard.
Welcome to 9AM Monday, the furthest point away from 5PM Friday.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users