homepage Welcome to WebmasterWorld Guest from 54.205.106.111
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Home / Forums Index / Code, Content, and Presentation / CSS
Forum Library, Charter, Moderators: not2easy

CSS Forum

    
Background images and style sheets
em00guy




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

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

 

Marshall




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

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




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

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

toolman




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

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




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

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




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

>>>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




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


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




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

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.

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / CSS
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved