skip to Main Content

move the second div to first position using css

i have one parent div , inside the parent div i have 3 children divs. <div class="parent"> <div class="child1">First</div> <div class="child2">Second</div> <div class="child3">Third</div> </div> For parent i already write below style. .parent { display: grid; grid-template-columns: 1fr 1fr 1fr; }…

VIEW QUESTION

Use css subgrid with automatic column spans

I have the following html structure. <div class="grandparent"> <div class="parent"> <div class="achild2">Child 2</div> <div class="achild2">Child 2</div> <div class="achild2">Child 2</div> <div class="achild2">Child 2</div> <div class="achild2">Child 2</div> <div class="achild2">Child 2</div> </div> <div class="achild1">Child 1</div> </div> .parent { display: grid; grid-template-columns: subgrid; grid-column:…

VIEW QUESTION
Back To Top
Search