Last Reply on Apr 11, 2012 08:51 AM By nedash

Views: 588   Replies: 2  Answers: 1
Joined: Jan 30, 2012 12:39 AM
Location:  
tehran
Iran  Iran
Asked: 328

hi

 

 I want use calss with this code in css

 

 

.maindiv
{
    background-image:url('image/8.jpg');
    background-repeat:no-repeat;
    height:2600px;
    width:1024px;
    }
 
when i use this class for my div it didn't show image but when i change url address like this
.maindiv
{
    background-image:url('http://localhost:3723/mysite/image/8.jpg');
    background-repeat:no-repeat;
    height:2600px;
    width:1024px;
    }
 
 
it showed my image why?
in past always i use url like this
    background-image:url('image/8.jpg');
and that showed my image but i don't know why  it didn't show my image now?
 
 
 
 

 

Neda


Joined: Nov 15, 2011 04:04 AM
Location:  
India 
Asked: 22
Answered: 95
Attempted: 129
0

try this,

    background-image:url(../image/8.jpg);

vinayak

© 2013 www.aspforums.net All rights reserved. Powered by Excelasoft Solutions.  Excelasoft Solutions

Disclaimer: This site is started with intent to serve the ASP.Net Community by providing forums (question-answer) site where people can help each other. The content posted here is free for public and is the content of its poster. The site does not provide any warranties for the posted content. If you feel any content is violating any terms please contact.
Google+ | FaceBook | Glossary
Google