Norman Posted September 13, 2007 Share Posted September 13, 2007 I have a question. If I want two images centered in my page, in two lines, attaked.. how can I do it? If I use the div tag (with style="text-align: center;"), I have a space between the two images. Link to comment Share on other sites More sharing options...
PrateekSaxena Posted September 13, 2007 Share Posted September 13, 2007 If you would want to images, side by side and cente align you can try the following - <style type="text/css">div#image-container{ padding: 0; margin: 0;}div#image-container img{ padding:0; margin: 0; float: left;}div#image-container img.right{ padding:0; margin: 0; float: right;}</style><div id="image-container"> <img src="img1.gif" alt="1" /> <img src="img2.gif" alt="2" class="right" /></div> I think that this should help. See if any minor changes are required Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.