brown2005 Posted August 24, 2009 Share Posted August 24, 2009 hi say i have the following... <div id="images" width="900"> <img src="" width="200> <img src="" width="200> <img src="" width="200> <img src="" width="200> </div> how can I space them, so that the first image is to the left.. the last image to the right. and the two in the middle evenly spread. but also taking into account if you add another image. this will start a new row. thanks Quote Link to comment Share on other sites More sharing options...
lostprophetpunk Posted August 24, 2009 Share Posted August 24, 2009 This code should work fine... images img { margin-left: 10px; margin-right: 10px; } You are also missing a quotation on your image tag... <img src="" width="200px" /> Hope that helped. Quote Link to comment Share on other sites More sharing options...
haku Posted August 24, 2009 Share Posted August 24, 2009 Are you working with a fixed width layout, or a liquid layout? And are you using fixed with images, or will they be variable widths? 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.