Click here to Skip to main content
15,922,166 members
Home / Discussions / Web Development
   

Web Development

 
Questionimage in division Pin
Member 1191972214-Dec-15 23:43
Member 1191972214-Dec-15 23:43 
AnswerRe: image in division Pin
Richard Deeming15-Dec-15 2:02
mveRichard Deeming15-Dec-15 2:02 
Member 11919722 wrote:

CSS
background-image:url('C:\Users\admin\Desktop\imag\cutis.jpg');

You've specified a local path for the image. That will only work if you load the HTML file from a local path. When you load the file from a website, the browser will not allow you to try to load images from the client's local system.

You need to put the image in a folder on your site, and use a proper URL to reference it:
CSS
background-image:url('path/to/your/image.jpg');

You can either use a full URL: https://www.yoursite.com/path/to/your/image.jpg
Or an absolute path on your site: /path/to/your/image.jpg
Or a path relative to the file where the CSS style is declared: ../../path/to/your/image.jpg



"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer


GeneralRe: image in division Pin
Member 1191972215-Dec-15 21:36
Member 1191972215-Dec-15 21:36 
GeneralRe: image in division Pin
Member 1191972215-Dec-15 21:41
Member 1191972215-Dec-15 21:41 
GeneralRe: image in division Pin
Richard Deeming16-Dec-15 1:47
mveRichard Deeming16-Dec-15 1:47 
Questionrename file name but keep extension Pin
Jassim Rahma11-Dec-15 12:12
Jassim Rahma11-Dec-15 12:12 
AnswerRe: rename file name but keep extension Pin
Garth J Lancaster11-Dec-15 14:01
professionalGarth J Lancaster11-Dec-15 14:01 
Generalcode on fingerprint Pin
Member 121958389-Dec-15 0:40
Member 121958389-Dec-15 0:40 
GeneralRe: code on fingerprint Pin
Richard MacCutchan9-Dec-15 2:39
mveRichard MacCutchan9-Dec-15 2:39 
GeneralRe: code on fingerprint Pin
ZurdoDev18-Dec-15 3:29
professionalZurdoDev18-Dec-15 3:29 
QuestionWeb and Win [Moved to Q/A] Pin
User 110609794-Dec-15 1:48
User 110609794-Dec-15 1:48 
AnswerRe: Web and Win Pin
Richard MacCutchan4-Dec-15 2:05
mveRichard MacCutchan4-Dec-15 2:05 
GeneralRe: Web and Win Pin
User 110609794-Dec-15 2:13
User 110609794-Dec-15 2:13 
GeneralRe: Web and Win Pin
Richard MacCutchan4-Dec-15 2:26
mveRichard MacCutchan4-Dec-15 2:26 
GeneralRe: Web and Win Pin
User 110609794-Dec-15 2:42
User 110609794-Dec-15 2:42 
QuestionCheck connection issue in asp.net Pin
Member 1019196824-Nov-15 21:44
professionalMember 1019196824-Nov-15 21:44 
AnswerRe: Check connection issue in asp.net Pin
Kornfeld Eliyahu Peter1-Dec-15 20:40
professionalKornfeld Eliyahu Peter1-Dec-15 20:40 
PraiseRe: Check connection issue in asp.net Pin
ZurdoDev4-Dec-15 4:03
professionalZurdoDev4-Dec-15 4:03 
GeneralRe: Check connection issue in asp.net Pin
Member 101919686-Dec-15 19:01
professionalMember 101919686-Dec-15 19:01 
GeneralRe: Check connection issue in asp.net Pin
Member 101919686-Dec-15 19:02
professionalMember 101919686-Dec-15 19:02 
QuestionAuto deployment of web application Pin
Praveen Raghuvanshi24-Nov-15 17:45
professionalPraveen Raghuvanshi24-Nov-15 17:45 
QuestionCreate Table and columns in XML from HTML Pin
SAM_India23-Nov-15 15:29
SAM_India23-Nov-15 15:29 
QuestionHow to use Server Sent Event(HTML5) with WCF Pin
ritesraj20-Nov-15 4:46
ritesraj20-Nov-15 4:46 
AnswerRe: How to use Server Sent Event(HTML5) with WCF Pin
Richard Deeming23-Nov-15 2:24
mveRichard Deeming23-Nov-15 2:24 
Questioncustom spring method security configuration Pin
Rohan Borde18-Nov-15 2:16
Rohan Borde18-Nov-15 2:16 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.