URL

  • Thread starter news.microsoft.com
  • Start date
N

news.microsoft.com

Hi all

I am using CSS to specify image urls on my master page. As a result when I
navigate to a page that is not in the website's root folder all of these
images are broken.

I would like to make all of my site's URLs absolute, especially within my
CSS. To do this I need VS2005 to use the following URL as the base

http://localhost:8080/

rather than

http://localhost:8080/website



Can this be done?



Thanks

Pete
 
P

Peter Morris

Sorry, I used the server name instead of my own name. Didn't mean to appear
to be rude :)
 
?

=?ISO-8859-1?Q?G=F6ran_Andersson?=

Not exactly an answer to your question, but perhaps even better:

If you use a CSS file, the URLs are relative to the CSS file, not to the
page.
 
P

Peter Morris [Droopy eyes software]

If you use a CSS file, the URLs are relative to the CSS file, not to the

Ah. In which case the url to my CSS in my master page is no longer valid.

I find the whole idea of having the site name in the URL to be a real PITA.
Is there a way I can disable this?


Thanks

Pete
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top