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 Quote Link to comment 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: Quote Link to comment 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. Quote Link to comment 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. Quote Link to comment 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. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.