We help IT Professionals succeed at work.

ASP.NET - background-image: url('../../<image name>'); is not showing the image at runtime

feesu
feesu used Ask the Experts™
on
Hi experts,
I have an aspx page that is called from within my default.aspx as a popup window.
In that popup I have a table cell with an image background:
            <td align="center"
               
                style="background-image: url('../../images/PricesAndSizing_bg.png');
                        background-repeat: no-repeat;
                        background-position: center center;
                        background-attachment: fixed;
                        height:40px;"
                class="module_Title">
                Sizes &amp; Pricing</td>

The image never shows at runtime. The path is correct.
What do I need to change?
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Jini JoseSenior .Net Developer

Commented:
use like below

style="background-image: url('images/PricesAndSizing_bg.png');

Author

Commented:
didn't work!
Jini JoseSenior .Net Developer

Commented:
did the below one working ?

yourdomain.com/images/PricesAndSizing_bg.png

Author

Commented:
Not even this! Although the image is there.
Senior .Net Developer
Commented:
remove the line

background-attachment: fixed;

Author

Commented:
Perfect!

What was my problem? And why doesn't it accept this line?