knev Posted January 31, 2012 Share Posted January 31, 2012 Hi I added two banner images to my php directory site http://linksbids.net the images which are in center of the page how can i create a space between them ? Thanks knev Link to comment https://forums.phpfreaks.com/topic/256103-php-code-help/ Share on other sites More sharing options...
MarPlo Posted January 31, 2012 Share Posted January 31, 2012 Hi, If you want vertical space, just add new html line: <br/> If you want horisontal space, add html entyties for space: Link to comment https://forums.phpfreaks.com/topic/256103-php-code-help/#findComment-1312974 Share on other sites More sharing options...
spiderwell Posted January 31, 2012 Share Posted January 31, 2012 that is of course html, CSS would be better, a 3rd option is a clear image as the spacer with a width of your choice i would not recommend using as a method of layout at all. Link to comment https://forums.phpfreaks.com/topic/256103-php-code-help/#findComment-1313015 Share on other sites More sharing options...
haku Posted February 8, 2012 Share Posted February 8, 2012 Give either the left image a right margin, or the right image a left margin, or a combination of both. Link to comment https://forums.phpfreaks.com/topic/256103-php-code-help/#findComment-1315645 Share on other sites More sharing options...
unknown1 Posted February 10, 2012 Share Posted February 10, 2012 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 More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.