why not use a CSS class instead?
Main Topics
Browse All Topicsok i have a masterpage.master in the root of my website.
In this master page is a table, one of the table cells has a background image the style declaration for the TD has the url for the image as "/siteroot/images/backgrou
This works perfectly in IE6 even when the page served is folders deep in the app.
However when viewed in IE7 the BG image does not show even for pages that share the foldr with the masterpage! If I change the URL to "images/background.jpg" then both IE6 and 7 will show the image as it should.... until you view a page in a subfolder then neither versions will show it. I have added runat="server" to the TD tag but (as expected) no change.
The master page has other images with runat=server and the images show regardless of where you are in the site... how can I make sure that the TDs background image behaves the same?
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
can you specify the FULL url
like <td background="http://localho
rather than just the image name...its always better
when you say full do you mean background:url("http://ser
Or whatever the exact syntax is? haven't tried that, can't test till back at work.
use a class instead.....
Do you mean a style tag in the masterpage that deals with the single TD cell in question? Would that resolve it? would I need a runat="server" on the <style> tag? is that a valid attribute?
<td background="http://localho
I haven't tried this, will give it a go when back to work tomorrow
yes full path, as in the http:// path.
This reduces flexibility, but certainly is safer
Thanks Bob, I have image controls in the master page and they work perfectly no matter where you are in the site, it is the style of the TD that breaks when we go deeper than the sites root...
<TD style="width: 258px; height: 520px; background-image:url(/wand
i think...if you put a image control inside a TD then it does not become a back ground and becomes a control...
try something like this..
<TD background="http://yourdom
"can you specify the FULL url
like <td background="http://localho
No difference, seems to be an IE thing rather than an access/path thing
Business Accounts
Answer for Membership
by: RedKelvinPosted on 2007-10-11 at 22:37:18ID: 20063243
can you specify full paths to the images, rather than using relative paths?