HTML Tutorial


 Forum HomeForum Home   FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
RegisterRegister - Not registered yet? Got something to say? Join HTML Code Tutorial!
Using CSS to have images flush together, HELP!!! Pls.
Post new topic   Reply to topic    HTML Help Forum Index -> CSS
View previous topic :: View next topic  
Author Message
tukutela



Joined: 19 Feb 2006
Posts: 3

PostPosted: Sun Feb 19, 2006 7:43 pm     Using CSS to have images flush together, HELP!!! Pls. Reply with quote

Hi,

I'm relatively new to web design, and are working on a project that's driving me nuts Smile

I'm trying within a row in a table to put two images side-by-side, I've played around most conceivable CSS options but I keep getting a slight gap between the images. How can I get them present flush together?

Here's an example of the HTML code I'm working with...
<table cellspacing="0px" cellpadding="0px">
<tr>
<td>
<img alt="firstimage" class="first" src="MyImage" />
<img alt="secondimage" class="second" src="MyImage2" />
<td>
</tr>

where the CSS looks like:
.firstimage, secondimage
{
position: relative;
width: 100px;
height: 50px;
top: 0px;
right: 0px;
vertical-align: bottom;
}

Any help would be greatly appreciated, thanks for taking the time to read this message.
Corey Bryant
Site Admin


Joined: 15 May 2004
Posts: 8301
Location: Castle Pines North, CO USA

PostPosted: Mon Feb 20, 2006 3:39 am     Reply with quote



It is a whitespace problem
Code:
<img alt="firstimage" class="first" src="MyImage" /><img alt="secondimage" class="second" src="MyImage2" />


_________________
Corey
Loud Commerce | Loud Worx | Toll Free Solutions
tukutela



Joined: 19 Feb 2006
Posts: 3

PostPosted: Mon Feb 20, 2006 3:55 am     Thanks! Reply with quote

Thankyou very much, worked a treat. Now I understand.... Smile
Corey Bryant
Site Admin


Joined: 15 May 2004
Posts: 8301
Location: Castle Pines North, CO USA

PostPosted: Mon Feb 20, 2006 3:56 am     Reply with quote

Glad to have helped - That is a very common mistake - one that I make at least once a week Smile

_________________
Corey
Loud Commerce | Loud Worx | Toll Free Solutions
Display posts from previous:   
Post new topic   Reply to topic    HTML Help Forum Index -> CSS All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
HTML Help Archive
Powered by phpBB © 2001, 2005 phpBB Group
HTML Help topic RSS feed 

 
HOSTING / DESIGN
MAKE MONEY

Home
  |   Tutorials   |   Forum   |   Quick List   |   Link Directory   |   About
Copyright ©1997-2002 Idocs and ©2002-2007 HTML Code Tutorial