Home > OS >  linking to a image not working due to css
linking to a image not working due to css

Time:06-04

i had a site like just eat setup on one domain name ive tranfered it to a sub domain name and edited all the files to update the url now ive noticed my background image is not working even tho im linking to it

<!-- banner part starts -->
<section  data-image-src="images/image01.jpg">
    <div >
        <div >
            <h1>Order Delivery & Take-Out </h1>
            <h5 >Enter your postcode to find local restaurants and takeaways in your area</h5>
            <div >
                   

live site can be found here http://food.clickincreaser.com/

CodePudding user response:

Change the:

data-image-src="images/image01.jpg">

To:

style="background-image: url(images/image01.jpg)">

To get something like that:

<section  style="background-image: url(images/image01.jpg)">
  • Related