NOOB question of the month: HTML ?!?

by 3 replies
4

hello hello,

im modifying a template, i like to learn and DIY


<li style="background: url('http://placehold.it/1920x850') no-repeat center center">


In this code the background picture is hosted on the web, while I want to use a local photo I have in the html website folder


How I need to modify that string to do that ?

I tried with img src: etc etc but it messed up


Thanksssssssssssssss
#programming #html #month #noob #question
  • Assuming that your image is in a folder called "images" inside a parent folder and the file that contains this code is in the parent folder.

    However, it would be better to put css in a separate stylesheet.
    Then, you would do something like:
    HTML:

    CSS:
  • thanks, got it!





    2nd noob question:

    in a template like this, in the contact page, how to change the location of the google map ?

    i searched the code and couldnt find any code related....is it in a different file ??

    Contact &ndash; Santorini
  • The code that controls the map is in js/scripts.js

    You code always read the api to figure it out.
    https://developers.google.com/maps/t...g-a-google-map

Next Topics on Trending Feed