-3

I'm new to HTML/CSS and am trying to change an image on the website I am working on. There's an image saved to the website (at foo.com/bar, the CSS has it set at /bar), and I don't know how to upload a picture from there. Sorry this is such a basic question but I don't know much at all about CSS/HTML

EDIT: My bad for not explaining myself well enough, I was in a hurry to finish yesterday.

We have the image but it's not uploaded to the website. The original image we're trying to replace is uploaded to foo.com/image/bar.jpg, but it was uploaded there before I started working this job and I don't know how to replace it or put another image in its place in the CSS. Should I just change the CSS to look at the file's location on the computer, like

<img src = "C:foo/bar.jpg">
4
  • Please be more specific and provide more details. What do you mean by "upload a picture from there"? Commented Aug 2, 2016 at 21:00
  • are you trying to embed the image in your website? is it even live? do you have code? Commented Aug 2, 2016 at 21:02
  • Please add code you tried, what happens, and what you want to happen. Without the above, we cannot help, only take ugly guesses. Commented Aug 2, 2016 at 21:21
  • Updated the post, hopefully that makes thing a little more clear. Commented Aug 3, 2016 at 13:36

1 Answer 1

0

Basic html for embedding an image

<img src="http://www.foo.com/folder/image.jpg" alt="My image" height="100" width="100">

or you can set h/w to auto or specify your own

if you are setting it as a background image in your css you can do

background-image: url("http://www.foo.com/folder/image.jpg");

within the div/body css

Sign up to request clarification or add additional context in comments.

2 Comments

I edited the post, hopefully that makes thing a bit more clear. I'm not trying to upload a picture from an existing folder on the website, I'm trying to replace an image in that folder with another one.
@Sig you can't point to a local file on your desktop from your website, it needs to be uploaded before you can use the image

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.