N
Nilesh
I am using background-image attribute in a CSS file and linking the
CSS file to aspx page. But strangly, background-image attribute is not
working for relative URL.
e.g. If I apply following css
..navbar-background {
background-image: url(images/menubar.gif);
}
the image is not appearing on the page. It seems that IE is picking
the image path relative to aspx file (instead of CSS file!)
If i change the CSS to
..navbar-background {
background-image: url(http:\\myserver\cp\images\menubar.gif);
}
then it's working.
What is the problem here?? Can someone please explain?
[Note: I am using IE6]
regards,
Nilesh Dhakras.
CSS file to aspx page. But strangly, background-image attribute is not
working for relative URL.
e.g. If I apply following css
..navbar-background {
background-image: url(images/menubar.gif);
}
the image is not appearing on the page. It seems that IE is picking
the image path relative to aspx file (instead of CSS file!)
If i change the CSS to
..navbar-background {
background-image: url(http:\\myserver\cp\images\menubar.gif);
}
then it's working.
What is the problem here?? Can someone please explain?
[Note: I am using IE6]
regards,
Nilesh Dhakras.