Logo 
Search:

Asp.net Forum

Ask Question   UnAnswered
Home » Forum » Asp.net       RSS Feeds

Image URL

  Asked By: Anpu    Date: Mar 10    Category: Asp.net    Views: 784
  

I know someone might have answered this but I guess it must be easy
so I will ask it again.



For setting a backround image in a HTML you can use :

BACKGROUND-IMAGE:
url(http://localhost/examples/Calendar/tab/textselected_blue.gif
<http://localhost/examples/Calendar/tab/textselected_blue.gif> );



Can I not use : BACKGROUND-IMAGE: url(sgrtab/textselected_blue.gif);



When I change it the pics do not show, can anyone please show me how to use
the later?

Share: 

 

4 Answers Found

 
Answer #1    Answered By: Lu Fischer     Answered On: Mar 10

I think you need quotes:

BACKGROUND-IMAGE: url("sgrtab/textselected_blue.gif");
Check out http://www.w3.org/TR/REC-CSS2/colors.html

 
Answer #2    Answered By: Alfonso Martin     Answered On: Mar 10

Use it the same way as you would link to your html  pages. If absolute path is
given be sure the path is correct, but if you use relative paths you should be
very careful, especially if U use CSS files that server pages along the folder
structure. Then you should always use absolute path naming...

 
Answer #3    Answered By: Amir Shaikh     Answered On: Mar 10

no quotes... YOu shouldn't use them or you'll get an error.

 
Answer #4    Answered By: Abriana Rossi     Answered On: Mar 10

Sorry, I just copied the code directly from the w3c standard and used his
image path.

 
Didn't find what you were looking for? Find more on Image URL Or get search suggestion and latest updates.




Tagged: