The moose likes HTML, CSS and JavaScript and the fly likes SPAN and TD  issue with CSS class. Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of Practical Unit Testing with TestNG and Mockito this week in the Testing forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Reply Bookmark "SPAN and TD  issue with CSS class." Watch "SPAN and TD  issue with CSS class." New topic
Author

SPAN and TD issue with CSS class.

John Vergis
Ranch Hand

Joined: Feb 24, 2004
Posts: 59
HI
If I display an image using css class inside <SPAN> tag, gives space in between the image.If the same css class inside the <TD> tag works without space.But i need the image to be displayed using <SPAN> tag without space in between.
Thanks in advance
Rgrds
John
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15003
I am assumeing you are using IE here
do not have any extra whitespace with the tags...
<td><span></span><td>
that might do the trick since IE adds an extra line break for some stupid reason..
Eric
 
 
subject: SPAN and TD issue with CSS class.
 
Threads others viewed
display errors
HTML/CSS: navigation bar
How to reduce cell heigt in a Table
Image link in the table - use img or background image ?
image tag used inside href tag
IntelliJ Java IDE