Chris Lad Chris Lad - 3 months ago 23
CSS Question

How to set background size (height & width)?

I'm very new to JavaScript.

My code so far:


What I want to do is have the background image at a set size so lets say:
width: 100%
height: 100%


You want to use background-size: 100%. Ensure that its browser support is compatible with your supported platforms.

     "background-image": "url(BG.jpg)", 
     "background-attachment": "fixed",
     "background-size": "100%"