Board index   FAQ   Search  
Register  Login
Board index php forum :: HTML HTML Basics

TD height with backgroung image.

Discussing Html . Code , Software , other

Moderators: macek, egami, gesf

TD height with backgroung image.

Postby gesf » Fri Dec 02, 2005 2:53 am

Hello again.

Code follows:
Code: Select all
<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!
Last edited by gesf on Fri Apr 14, 2006 8:53 pm, edited 1 time in total.
User avatar
gesf
Moderator
Moderator
 
Posts: 1718
Joined: Sun Dec 29, 2002 5:03 am
Location: Portugal / Sweden

Postby Alexej Kubarev » Fri Dec 02, 2005 3:08 am

First idea: using style="height:1px" next problem cellspacing
and the third thing: background-repeat:-x-repeat
User avatar
Alexej Kubarev
Site Admin
Site Admin
 
Posts: 2223
Joined: Fri Mar 05, 2004 7:15 am
Location: Täby, Stockholms län

Postby gesf » Fri Dec 02, 2005 3:20 am

Nop... not working!
The colspan="2" is causing the poblem.
Will make some other tests!
User avatar
gesf
Moderator
Moderator
 
Posts: 1718
Joined: Sun Dec 29, 2002 5:03 am
Location: Portugal / Sweden

Postby php-vikas » Sat Dec 03, 2005 10:48 am

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.
php-vikas
New php-forum User
New php-forum User
 
Posts: 164
Joined: Mon Apr 14, 2003 12:25 am
Location: India

Postby Alexej Kubarev » Sat Dec 03, 2005 10:54 am

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
User avatar
Alexej Kubarev
Site Admin
Site Admin
 
Posts: 2223
Joined: Fri Mar 05, 2004 7:15 am
Location: Täby, Stockholms län

Postby gesf » Sun Dec 11, 2005 6:41 pm

This is stupid, but... got the solution...
Code: Select all
<!-- This -->

<td colspan="2" height="1" style="background: url(images/pointille.gif);"><img src="images/spacer.gif" alt="" width="1" height="1" /></td>

<!-- Instead of -->

<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
User avatar
gesf
Moderator
Moderator
 
Posts: 1718
Joined: Sun Dec 29, 2002 5:03 am
Location: Portugal / Sweden

Postby Alexej Kubarev » Sun Dec 18, 2005 3:11 am

Hmmz, i wonder why i had a luck of never getting such problems.. hehehe
User avatar
Alexej Kubarev
Site Admin
Site Admin
 
Posts: 2223
Joined: Fri Mar 05, 2004 7:15 am
Location: Täby, Stockholms län

Postby gesf » Sun Dec 18, 2005 3:17 am

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 :)
User avatar
gesf
Moderator
Moderator
 
Posts: 1718
Joined: Sun Dec 29, 2002 5:03 am
Location: Portugal / Sweden

Postby Alexej Kubarev » Sun Dec 18, 2005 3:26 am

noup: its IE-only...
User avatar
Alexej Kubarev
Site Admin
Site Admin
 
Posts: 2223
Joined: Fri Mar 05, 2004 7:15 am
Location: Täby, Stockholms län

Postby ruturajv » Sun Dec 18, 2005 8:11 pm

I have almost forgotten that there is another browser called IE ;)
User avatar
ruturajv
php-forum Super User
php-forum Super User
 
Posts: 1280
Joined: Sat Mar 22, 2003 9:42 am
Location: Mumbai, India

Postby gesf » Sun Dec 18, 2005 10:02 pm

heheh good joke :D I'm actually not using IE that much... just because of my website :(
User avatar
gesf
Moderator
Moderator
 
Posts: 1718
Joined: Sun Dec 29, 2002 5:03 am
Location: Portugal / Sweden


Return to HTML Basics

Who is online

Users browsing this forum: No registered users and 0 guests

Sponsored by Sitebuilder Web hosting and Traduzioni Italiano Rumeno and antispam for cPanel.

cron