Welcome to WebmasterWorld Guest from 54.160.131.144

Forum Moderators: not2easy

Message Too Old, No Replies

Background images and style sheets

     

em00guy

10:54 pm on Jan 6, 2002 (gmt 0)

10+ Year Member



is there a way to make a background image span several cells.

Marshall

6:17 am on Jan 7, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



You could try putting it in the <TR> tag, though I really don't know if that will work. Your other option is have the image as a background for the table. But if you're looking to only have it in three cells out of several, you may have to make those three cells their on table within your outer table. If the image isn't tiled, you could just repeat it in each cell.

em00guy

9:27 pm on Jan 7, 2002 (gmt 0)

10+ Year Member



hmm, it seems this just isn't possible thanks anyway marshall. I think I'll just splice the image.

toolman

10:02 pm on Jan 7, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



cross browser is only in the <td> tag as far as I know...just slice the images and call each slice in each td.

rdiago

3:40 am on Jan 8, 2002 (gmt 0)

10+ Year Member



Slicing will most likely be the best way to go, just ensure that you specify everything. Slice the image precisely in pixels, and then make sure the cells are also the exact height and width in pixels for best results and to prevent stretching the image.

toolman

3:44 am on Jan 8, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



>>>and then make sure the cells are also the exact height and >>>

And use a transparent pixel to set height so it doesn't jump around. Width is good to set too but not as crucial.

netcommr

7:53 pm on Jan 8, 2002 (gmt 0)

10+ Year Member




Would using a nested table work for you. Background image in 1 table in the back, then the table on top would have your split cells.

tedster

8:34 pm on Jan 8, 2002 (gmt 0)

WebmasterWorld Senior Member tedster is a WebmasterWorld Top Contributor of All Time 10+ Year Member



If you use necommr's solution, the nested table tag should say <table background="null">.

Otherwise some browsers will start re-tiling the inherited background in each new cell, instead of just letting it span several cells.