Click here to Skip to main content
15,792,397 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello every one,


I am facing problem in loading my banner image into my .aspx page.
Here is the problem i have create a separate folder in my project for CSS and Images
its like this ../CSS/Director/Director.css and image is stored in ../Image/Director/Image



CSS
.bg_header{ background-image:url(../Image/Director/Image/images/bg_header.jpg); background-position:center; background-repeat:no-repeat;} 


this code in CSS file
but i am not getting image
if i write like this

CSS
.bg_header{ background-image:url(E:/Project1/Image/Director/Image/images/bg_header.jpg); background-position:center; background-repeat:no-repeat;} 


then the image is going to display .

Here the problem is image src is not getting the proper path so can any body tell me how can i give the
<pre lang="CSS"><img src="......"/>



thanks in advance...
Posted

1 solution

hii

if your try
this ../../../../../Image/Director/Image/images/bg_header.jpg because .. return one step back or one folder back
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900