C
czuvich
I am having an issue with an external css file. I am trying to get a
background image to show up in the browser using the background-image
url property. The code I have works fine for most users, but for some,
the image does not show up. Here are my scenarios..
Here's the external css..
#companylogo
{
background-image: url(/images/SWNheader.jpg);
height: 70px;
}
Here's the html snippet...
<div id="companylogo"></div>
The reason why I am using the /images is due to our folder structure.
Here's our production web server structure.
inetpub/wwwroot/images
inetpub/wwwroot/applicationdirectory/app_themes/styles.css
The image comes up fine for all users now, but in the IDE in debug
mode, it does not come up. The image folder is present and my
application is running under the same directory structure. I am
wondering if it has something to do with that port it runs on whenever
you run it in debug.
Here's what I have also tried...
#companylogo
{
background-image: url(http://localhost/images/SWNHeader.jpg);
height: 70px;
}
Now, the image comes up fine on my local machine, but for some users in
the production environment it doesn't display the image. It's just
blank. If someone could maybe guide me to a way to display the image on
both environments (local and production). I know it's got to be
something simple since surely other environments have this same setup.
Thanks!
background image to show up in the browser using the background-image
url property. The code I have works fine for most users, but for some,
the image does not show up. Here are my scenarios..
Here's the external css..
#companylogo
{
background-image: url(/images/SWNheader.jpg);
height: 70px;
}
Here's the html snippet...
<div id="companylogo"></div>
The reason why I am using the /images is due to our folder structure.
Here's our production web server structure.
inetpub/wwwroot/images
inetpub/wwwroot/applicationdirectory/app_themes/styles.css
The image comes up fine for all users now, but in the IDE in debug
mode, it does not come up. The image folder is present and my
application is running under the same directory structure. I am
wondering if it has something to do with that port it runs on whenever
you run it in debug.
Here's what I have also tried...
#companylogo
{
background-image: url(http://localhost/images/SWNHeader.jpg);
height: 70px;
}
Now, the image comes up fine on my local machine, but for some users in
the production environment it doesn't display the image. It's just
blank. If someone could maybe guide me to a way to display the image on
both environments (local and production). I know it's got to be
something simple since surely other environments have this same setup.
Thanks!