Jump to content

PHP code help


knev

Recommended Posts

Use css. e.g.

 

echo "<img src='images/myimage.png' border='0' width='100' height='100' style='padding:10px;'>";

 

The above code would give the top, left, right and bottom a 10px padding around the image.

 

Keep in mind your image is now 120 X 120, and not 100 X 100, so you sometimes have to compensate by making the image smaller, or making the image space bigger.

 

 

Link to comment
https://forums.phpfreaks.com/topic/256103-php-code-help/#findComment-1316465
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.