html - images in same level php -


i wondering how can place images in php 1 next another. example:

image image image image.

right now,using code:

print "</h2><br><a href='form.php'><img src=***.jpg width=100 height=100  /><br> house specifications </a><br><div>"; echo "<br>"; print "</h2><br><a href='devices.php'><img src=***.jpg width=100 height=100  /><br>devices  </a><br>"; echo "<br>"; echo "</h2><br><a href='new_info.php'><img src=***.jpg width=100 height=100  /><br> change contact info</a><br>"; echo "<br>"; echo "</h2><br><a href='events.php'><img src=***.jpgwidth=100 height=100  /><br> events</a><br>"; echo "<br>"; echo "<br>"; echo "<br>"; print "<br></h2><br><div align= 'center'><a href='logout.php'><img src=***.jpg width=100 height=100  /><br>logout</a><br>"; 

;the result this:

image

image

image

image.

please help.

delete html tags, broken , have tags explicitly telling browser draw newlines. also, css / html question, not php...

change this:

//container div echo "<div>"; //one image per line echo "<a href='form.php'><img src='img1.jpg' width='100' height='100' /></a>"; echo "<a href='form.php'><img src='img2.jpg' width='100' height='100'  /></a>"; echo "<a href='form.php'><img src='img3.jpg' width='100' height='100'  /></a>"; echo "<a href='form.php'><img src='img4.jpg' width='100' height='100' /></a>"; echo "</div>"; 

by way, dont need php of this.


Comments