ok this code puts an image on a page and other fields down the side what i would like is the image in center and all fields below if any one can help cheers Doug //Outputs the image and other data Echo "<img src=http://www.uk-caravan-hire.com/images/".$info['pname'] ." alt=\"Image\" align=\"left\" width=\"100px\" height=\"75px\" hspace=\"10px\" vspace=\"8px\"> <br>"; Echo "<b>Park Name:</b> ".$info['parkname'] . " <br>"; Echo "<b>Park Location:</b> ".$info['parklocation'] . " <br>"; Echo "<b>Details:</b> ".$info['caravandetails'] . " <hr>"; } ?> PHP:
Echo "<p style=\"text-align: center;\"><img src=http://www.uk-caravan-hire.com/images/".$info['pname'] ." alt=\"Image\" align=\"left\" width=\"100px\" height=\"75px\" hspace=\"10px\" vspace=\"8px\"></p>"; PHP:
i am very sorry but this does not work right still getting image on left and writting down the side of image what i was looking for was image in the center of the page and the writting underneath to the left cheers Doug
image will in center if you edit this align=\"left\" and write align=\"center\" Echo "<img src=http://www.uk-caravan-hire.com/images/".$info['pname'] ." alt=\"Image\" align=\"center\" width=\"100px\" height=\"75px\" hspace=\"10px\" vspace=\"8px\"> <br>";
Echo "<img src=http://www.uk-caravan-hire.com/images/".$info['pname'] ." alt=\"Image\" align=\"center\" width=\"100px\" height=\"75px\" hspace=\"10px\" vspace=\"8px\"> <br>"; PHP: sorry this just does not work Doug
any more offers of help as i would like to get this right cheers Doug and thanks for all who have tried so far
Lol at 10 replies and still no luck aligning an image. Jeeze... this does work: Echo '<p style="text-align: center;"><img src="http://www.uk-caravan-hire.com/images/'.$info['pname'] .'" alt="Image" width="100px" height="75px"></p>'; Echo "<b>Park Name:</b> ".$info['parkname'] . " <br>"; Echo "<b>Park Location:</b> ".$info['parklocation'] . " <br>"; Echo "<b>Details:</b> ".$info['caravandetails'] . " <hr>"; PHP:
//Outputs the image and other data Echo "<center><img src=http://www.uk-caravan-hire.com/images/".$info['pname'] ." alt=\"Image\" align=\"left\" width=\"100px\" height=\"75px\" hspace=\"10px\" vspace=\"8px\"> <br>"; Echo "<b>Park Name:</b> ".$info['parkname'] . " <br>"; Echo "<b>Park Location:</b> ".$info['parklocation'] . " <br>"; Echo "<b>Details:</b> ".$info['caravandetails'] . " <hr></center>"; } ?> PHP:
big thanks nico that worked just as i needed and a big thanks to all for help till next time He He He Doug