Jump to content

[SOLVED] Spaces between images


CoreyR

Recommended Posts

Anyone know why this is happening?

 

http://www.romerowebsites.com

 

HTML CODE

<div align="center" id="logo">
	<a href="index.php?page=index"><img src="/images/logo.gif" border="0"><br /><img src="/images/logo_bottom.gif" border="0"></a>
<div id="navi">
	<img src="/images/spcr.gif" width="14" height="1"><a href="page.php?page=about"><img src="/images/nav_about.gif" border="0"></a><img src="/images/spcr.gif" width="14" height="1"><a href="page.php?page=examples"><img src="/images/nav_examples.gif" border="0"></a><img src="/images/spcr.gif" width="14" height="1"><a href="page.php?page=port"><img src="/images/nav_portfolio.gif" border="0"></a><img src="/images/spcr.gif" width="14" height="1"><a href="page.php?page=contact"><img src="/images/nav_contact.gif" border="0"></a><img src="/images/spcr.gif" width="45" height="1"><img src="/images/nav_right.gif">
</div>

CSS CODE
#logo {
width:780;
margin:0;
padding:0;
}


Link to comment
Share on other sites

there's a good chance the line breaks in the HTML code itself is the culprit.  it sounds counter-intuitive, but i often find that linebreaks in some code (particularly where minimally defined DIVs are concerned).

Link to comment
Share on other sites

I think there are better ways to approach your layout, but if you want to do it this way, then try adding style="vertical-align:bottom;" to the top images and style="vertical-align:top;" to the bottom images.  Insert it into the tags right after the src attribute.  Not sure that it will solve your problem but i've had similar things when I've put images that are supposed to be aligned.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.