TD height with backgroung image.

gesf

Active member
Hello again.

Code follows:
Code:
<form name="f" method="post" action="/whatever">
<table width="100%" border="0" cellspacing="3" cellpadding="0">
  <tr>
    <td colspan="2" height="1" style="background: url(images/pointille.gif);">
	  <img src="images/spacer.gif" alt="" width="1" height="1" />
	</td>
  </tr>
  <tr> 
    <td valign="middle">Whatever</td>
    <td valign="middle">Whatever</td>
  </tr>
  <tr>
    <td colspan="2" height="1" style="background: url(images/pointille.gif);">
	  <img src="images/spacer.gif" alt="" width="1" height="1" />
	</td>
  </tr>
</table>
</form>
This is an example code, but the part that makes the problem is there.
So, this code have different effects with IE and the other browsers. The IE is the problem.

Any idea on how to solve this?
I've tried many different things and nothing!
Thanks you!
 
Nop... not working!
The colspan="2" is causing the poblem.
Will make some other tests!
 
Hello gesf,

From where I can got the access to "pointille.gif" and "spacer.gif". I am very much eager to sort out your problem. I love to work in HTML as I am text editor based programmer.
 
gesf.. the colspan=2 should have anything to do with it... did you test
style="background: url(images/pointille.gif); background-repeat: repeat-x;"

?
i wrote x-repeat before and it was wrong
 
This is stupid, but... got the solution...
Code:
<td colspan="2" height="1" style="background: url(images/pointille.gif);"><img src="images/spacer.gif" alt="" width="1" height="1" /></td>



<td colspan="2" height="1" style="background: url(images/pointille.gif);">
     <img src="images/spacer.gif" alt="" width="1" height="1" />
</td>
Damn IE !! :-x
 
Yep, this would be the last thing i could think about 'cause... it's really stupid or maybe i'm too involved with Firefox now :)
 
I have almost forgotten that there is another browser called IE ;)
 
Back
Top