Jump to content

Archived

This topic is now archived and is closed to further replies.

Solarpitch

Problem structuring with <div> ?

Recommended Posts

Hey Guys,

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

[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>";[/code]

If you look at http://xs.to/xs.php?h=xs108&d=06430&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.

Share this post


Link to post
Share on other sites
I had a little play and came up with [url=http://homepage.ntlworld.com/cshepwood/Solarpitch/test.html]this[/url]

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

Share this post


Link to post
Share on other sites
Man thats brilliant! Thanks very much . . finally I can move on in my application! Thanks again :)

Gerard.

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.