Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - tr background image problem
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Topic Closedtr background image problem

 Post Reply Post Reply
Author
Roman View Drop Down
Newbie
Newbie


Joined: 21 January 2004
Location: Australia
Status: Offline
Points: 39
Direct Link To This Post Topic: tr background image problem
    Posted: 14 January 2006 at 2:05pm
I have an image problem that I can't find a solution for. I have made a single image that is 1000px wide made up of many smaller images sitting side by side that are blended together. I want to use it as a banner across the header of my site but I don't want the banner to affect the formatting of the page.

Firefox handles it fine if I use the image as a table tr background. The browser window can be dynamically resized and no horizontal scroll bar appears. IE doesn't support tr background so I can't see the image at all. If I insert the image into a tr the table is pushed out to 1000px and the page is no longer confined to the boundaries of the browser window.

How do I sort this out? Can I use CSS or javascript to simply display as much af the image as the browser window allows?

Thanks...
Back to Top
dpyers View Drop Down
Senior Member
Senior Member


Joined: 12 May 2003
Status: Offline
Points: 3937
Direct Link To This Post Posted: 14 January 2006 at 5:09pm
I'd start by putting an empty table row there containing a div with a   in it. Use the image for the background of the div, not the tr or the td in the tr.

css style for the dive should probably be something like
style="background-repeat: no-repeat; overflow: hidden;"

Assuming you want the image across the entire page, not just the part occupied by the table containing wwf, you could put the image in an absolutely positioned div that has it's z-order set to be behind the forum.


Lead me not into temptation... I know the short cut, follow me.
Back to Top
Roman View Drop Down
Newbie
Newbie


Joined: 21 January 2004
Location: Australia
Status: Offline
Points: 39
Direct Link To This Post Posted: 14 January 2006 at 11:49pm
Hi dpyers,
 
Fantastic - thankyou. Works like a dream in both Firefox and IE. Sometimes the easiest of solutions are so hard to find.
 
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.