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
https://forums.phpfreaks.com/topic/153879-css-positioning/
Share on other sites

Archived

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

×
×
  • 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.