Jump to content

css positioning...


spikypunker

Recommended Posts

Hey guys, am trying to get a CSS div to dynamically insert each time a record is read from Mysql. Currently i've just got this CSS:

 

#track {

width: 90px;
float: left;
display: inline;
margin-left:10px;	

}

 

And this PHP code:

 

$i = 0;

while ($i < $num &&  $i < '10')

{ 

$title = mysql_result($result2,$i,"title");
$image2 = mysql_result($result2,$i,"image");


echo "<div id='track'><a href='netdog-track.php?user=$user&title=$title'><img src='netdog/musicpics/$image2' height='90' width='90' border='1'></a>  <br><br>$title<br><br></div>";

$i++;

}

 

This ALMOST works but for some reason two of the blocks are messing up! You can see here:

 

http://www.maddogmagazine.co.uk/netdog-genres.php?user=spikypunker

 

So close! Any ideas?

 

 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

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.