Aligning PHP and HTML code on page

  bospa 14:18 04 Mar 09

New to php and know enough about html to be dangerous. Need help getting html object aligned on page.

I have a simple php code to display visitors IP, Host, Browser, and You Got Here From

$hostaddress = gethostbyaddr($ip);
$browser = $_SERVER['HTTP_USER_AGENT'];
$referred = $_SERVER['HTTP_REFERER'];
print " strong>Your IP Address is: /strong> br />\n";
print "$ip br /> br />\n";
print " strong>Your Host is: /strong> br />\n";
print "$hostaddress br /> br />\n";
print " strong>Your Browser is: /strong>: br />\n";
print "$browser br /> br />\n";
print " strong>You Got Here From: (if you clicked on a link to get here) /strong>: br />\n";
if ($referred == "") {
print "Page was directly requested";
else {
print "$referred";

And copied and pasted the Honey Pot graphic in HTML

style>a.tastup{color:#FFF;font:bold 10px arial,sans-serif;text-decoration:none;} /style> table cellspacing="0"cellpadding="0"border="0"style="background:#999;width:230px;"> tr> td valign="top"style="padding: 1px 2px 5px 4px;border-right:solid 1px #CCC;"> span style="font:bold 30px arial,sans-serif;color:#666;top:0px;position:relative;">@ /span> /td> td valign="top" align="left" style="padding:3px 0 0 4px;"> a href="click here" class="tastup">MEMBER OF PROJECT HONEY POT /a> br/> a href="click here"class="tastup">Spam Harvester Protection Network br/>provided by Unspam /a> /td> /tr> /table> /center> br

How can I get the Honey Pot graphic to align center and to the left of the visitor info?

[IMG]click here[/IMG]

  Kemistri 12:57 07 Mar 09

If you discarded that messy table mark up and used divs, you would find it a lot easier. You could just float the image to the right (depends on the position of the <img> in the flow of the mark up) or position it absolutely within the parent div (if the div has relative positioning).

This thread is now locked and can not be replied to.

Surface Pro 5 News - release date, UK price, features, specs

Gear VR vs. Daydream: Which delivers the best VR experience?

iPad Pro 12.9 vs Surface Pro 5