Ask coding questions

← Back to all posts
How to add Background Image
Marlone (5)

How to i add a background image for my website. For sometime now i've begun a new project but i have recently had difficulty in adding a background image for my website. Can anyone pls tell me how you can add a background image to your website

Comments
hotnewtop
DynamicSquid (4619)

Add this in your body tag: <body background="IMAGE">

So it should look something like this:

<body background="IMAGE">
      <header>
          <div class="hero-text-box">

Hopefully this helps!