Jump to content
Killersites Community
Sign in to follow this  
AspiringWebDesigner

Having Trouble Spacing Pictures

Recommended Posts

I just started writing a blog and made my first posting yesterday. Fyi, I'm using blogger. I tried arranging three pictures somewhat like this:

 

Picture____Picture

 

_____Picture_____

 

I wrapped the first two pictures in a div and centered the div. I also added a bottom margin to the div so that there would be some space between the div and the picture below the div. The only problem is, the margin doesn't show up. The third picture is super close to the top two pictures. I have no idea how to fix this.

 

Here is the code I'm having trouble with:

 

<div style="margin: 30px auto 35px auto; width: 500px">

<img style="margin: 0px 35px 0px 8px; width: 214px; display: inline; float: left" border="0" alt="Tools>Options" src="
/>

 

<img style="margin: 0px; width: 214px; display: inline; float: left" border="0" alt="Profile Management Window" src="
/>

</div>

<img style="margin: 0px auto 35px auto; width: 214px; display: block; float: none; clear: left" border="0" alt="Click on New" src="
/>

 

To see how these pictures look on my blog, scroll down a little past the area titled "Time to Set up Your Modem." Or just use control find :).

 

http://pctutorialscostarica.blogspot.com/

 

Thanks!

Share this post


Link to post
Share on other sites
<img style="margin: 0px auto 35px auto; width: 214px; display: block; float: none; clear: left" border="0" alt="Click on New" src="http://i988.photobucket.com/albums/af6/pctutorialscostarica/New_Profile.png" />

 

If you increase the margin:0 (when it's zero, you don't need a unit of measure - zero is zero regardless) to 280px (or more) you start getting some space between the images. Like so:

<img style="margin: 285px auto 35px auto; .....

I think it has to do with floating the two images above.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×