skip to Main Content

Css – How to scale div with the image dimension?

I'm creating a JS slider for before and after of the images. I have the following HTML, JS and CSS: main.html <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta http-equiv="X-UA-Compatible" content="ie=edge"> <link rel="stylesheet" href="css/style.css"> </head> <body>…

VIEW QUESTION
Back To Top
Search