Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
CSS not being honored
Message
 
À
09/11/2009 10:39:34
Timothy Bryan
Sharpline Consultants
Conroe, Texas, États-Unis
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Divers
Thread ID:
01433817
Message ID:
01433851
Vues:
36
>This is currently published as a root level application as it is a test site behind my web site. I originally did not have the first slash on the images and I had added and removed quotes around the url portion to no avail.
>Also there is some color items that are not applying either. Could it also be the url to the css file is not right within the aspx page because of not being a root level application? I have this:
>

>link href="~/CSS/style.css" rel="stylesheet" type="text/css" /
>>

The tilde shortcut thing only works on server-side controls, not normal HTML markup.

>
>But it is actually behind the other web app so maybe it should be
>"/Sandbox/MSA/CSS/style.css"

Yes.

>I am a bit confused now.
>the root directory of the is web app is set as a virtual (application) directory. Where does this refer to:
>"/CSS/style.css"

The root of the website.

>or this
>"CSS/style.css

This is relative to the current page's location. So if the current page is in /Sandbox/MSA then CSS is assumed to be a subdirectory, ex. /Sandbox/MSA/CSS

>or this
>"~/CSS/style.css"

This isn't resolved for you (take a look in the HTML sent to the browser and you'll still see the ~).
-Paul

RCS Solutions, Inc.
Blog
Twitter
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform