diff --git a/index.html b/index.html index a64b42c..9795f84 100644 --- a/index.html +++ b/index.html @@ -202,20 +202,15 @@
-
+
- +
First Human Rights Foundation

- Everyone's right is our mission! -
-
-
- Registered With Central Government of India (Reg-No.166151/16) + Everyone's right is our mission! + Registered With Central Government of India (Reg-No.166151/16)
@@ -367,8 +362,7 @@

Be a member

let currImg = 0; setInterval( () => { - backdropEle.style.background = - `url(${backdropImgs[currImg++]}) center center no-repeat`; + backdropEle.style['background-image'] = `url(${backdropImgs[currImg++]})`; if (currImg === backdropImgs.length) currImg = 0; }, diff --git a/styles/config.css b/styles/config.css index b893376..154f240 100644 --- a/styles/config.css +++ b/styles/config.css @@ -24,19 +24,18 @@ body { } .front-cover { - position: absolute; - top: 0; - border: 0; - left: 0; - right: 0; + position: relative; + margin-left: -32px; + margin-right: -32px; height: 100vh; - object-fit: cover; } .front-cover img { width: 100%; height: 100%; - object-fit: cover; + background-size: cover; + background-position: center; + background-repeat: no-repeat; } .front-cover .backdrop-text {