stjurate / prj-rev-bwfs-dasmoto

0 stars 0 forks source link

Including assets #3

Open ghost opened 6 years ago

ghost commented 6 years ago

https://github.com/stjurate/prj-rev-bwfs-dasmoto/blob/master/Dasmoto-Arts-Crafts/index.html#L15

Nice job including your website's assets (in this case images) in your project and provide a relative file path to them in your img tags. 👍

It's always better to provide static assets up front instead of depending on external URLs that could fail or otherwise become unavailable.

stjurate commented 6 years ago

I wanted to ask if you could advice me what would be the best way to apply a local image to 'background-image property?.

Thank you very much.

ghost commented 6 years ago

@stjurate Use a relative file path to do so. Note that the file path is relative to the working file, so you should write it relative to style.css.

background-image: url("./images/finnish.jpeg");