TalkPHP

TalkPHP (http://www.talkphp.com/forums.php)
-   XHTML, HTML, CSS (http://www.talkphp.com/xhtml-html-css/)
-   -   <tr> Images (http://www.talkphp.com/xhtml-html-css/1344-tr-images.html)

WinSrev 10-26-2007 03:00 PM

<tr> Images
 
Hey,

I have a css file that has a class that assigns a background image, i put the class on a <tr tag and shows it in FireFox but IE cant seem to understand it, is there a way around this?

Thanks.

Wildhoney 10-26-2007 11:03 PM

Works perfectly for me.

Code:

<table>
        <tr style="background: transparent url('./background.jpg') repeat-x;">
                <td>Column 1</td>
                <td>Column 2</td>
                <td>Column 3</td>
        </tr>
</table>


WinSrev 10-26-2007 11:14 PM

Well, i kinda need it in my stylesheet, but it seems it wont load it, any other ideas much appreciated.

Gurnk 10-27-2007 12:59 AM

Code:

.class {
      background:#color url(urlToimage.jpg) repeat-x;
      height:auto;
      width:auto;
}

<table>
    <tr class="class">
          <td>Column</td>
    </tr>
</table>

That should work.

WinSrev 10-27-2007 01:14 AM

with that code, neither browser works.


All times are GMT. The time now is 01:53 AM.

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0