Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old August 9th, 2006, 03:55 AM
Sorbitol
Guest
 
Posts: n/a
Default problem with adyacent img's

I'm trying to put two adjacent img tags inside a table cell

example:

<td><img class="imgclass" src=""/><img class="imgclass" src="" /></td>

but i'm getting always a line break between images

the following is the css code for imgclass:

..imgclass {
border: 0;
margin: 0;
height: 15px;
}

i've tried with float:left, display: inline, etc. but cannot get rid
of the break line between images... (mozilla, ie6)

help please!
  #2  
Old August 9th, 2006, 06:55 AM
Jukka K. Korpela
Guest
 
Posts: n/a
Default Re: problem with adyacent img's

Sorbitol <ineira@vtr.netscripsit:
Quote:
I'm trying to put two adjacent img tags inside a table cell
Why? Using an image processing program to combine the images into one would
appear to be the obvious solution.
Quote:
example:
>
<td><img class="imgclass" src=""/><img class="imgclass" src="" /></td>
Really? This invalid sketchy markup does not help much. How about a URL.

I suspect that you actually have a space between the elements.
Quote:
.imgclass {
border: 0;
margin: 0;
height: 15px;
}
Why? Images normally have a default of 0 for border and margin, so why would
you say that explicitly? (If a browser has a different setting in the user
style sheet, maybe there's a _reason_ to that.) Setting the height to 15px
looks pointless: you just risk getting a poor scaling if the actual image
height is not 15 pixels.

--
Jukka K. Korpela ("Yucca")
http://www.cs.tut.fi/~jkorpela/

  #3  
Old August 9th, 2006, 10:15 AM
Andy Dingley
Guest
 
Posts: n/a
Default Re: problem with adyacent img's


Sorbitol wrote:
Quote:
I'm trying to put two adjacent img tags inside a table cell
No URL. No comments.

 

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles