I need help with formatting the echo output. I know the basics - set font size, font color, align text etc... But what I don't know is aligning images...
So, this is the code:
Code: Select all
<div>
<?php
...//conn and query lines... unimportant for this//
echo "<div align='left'><a href=\"some href link\">".$row["image"]."</a></div>".('<font size="3" color="white">').$row['article']." <br> " . ('<font size="2" color="white">').$row['art_name']." <br> " . ('<font size="2" color="red">').$row['art_kind']." <br> ";
echo ('<font size="2">')."<br><br><a href=\"some href link\"><b>link text</b></a>";
echo "<hr style=color:#FFFFFF width=100% size=1 noshade />";
?>
</div>But what I need, actually is that the image is LEFT (*image is a square 150x150px) and the other data to the RIGHT of the image , first data top, second in middle, third to the bottom; but all in the same space that the image occupies, not under, - I actually want this whole set formatted like in html, but I don't know how. (I can do it with table, with 2 cells output, maybe, one cell for image only (php1) and other cell for data (php2), but I want to know can I do it in a single div.
I tried to format the <div align, size... etc> and it's not working... I also tried <img align this and that> and it's not working...
How can this be done?
Please help! Thank you!