Quantcast
Channel: Active questions tagged html - Stack Overflow
Viewing all articles
Browse latest Browse all 74102

CSS, how to place images inside images and place them at the right place?

$
0
0

Here is what I am trying to do, I wanna place 8 of those images equally distanced. All of those images are in state, I am using react to change them.

I managed to place the background Image, the 8 images in the right equidistant spot but after that it got really confusing.

I don't know if I should use a div with background image and 3 items inside.

Some tutorials I found seems to not work with react.

Here is how i managed to make 8 spaces. Now i need to place the background and 3 images inside them.

flex-direction: row;
    display: flex;
    align-items: center;
    justify-content: space-between;
<div className="height60">
                    <div className="background1">1</div>
                    <div className="background2">1</div>
                    <div className="background1">1</div>
                    <div className="background2">1</div>
                    <div className="background1">1</div>
                    <div className="background2">1</div>
                    <div className="background1">1</div>
                    <div className="background2">1</div>
              </div>

what i am trying to do

My last attempt

enter image description here


Viewing all articles
Browse latest Browse all 74102

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>