Is it possible to get such a layout using grid?

Are there ways to use grid in my case? >Solution : You can adjust the margin for the 5th, 11th and 12th items. .wrapper { display: grid; grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr; grid-template-rows: 1fr 1fr 1fr 1fr; gap: 32px; max-width: 800px; 500px } .item { background-color: lightgrey; border: 1px solid black; padding: 20px;… Read More Is it possible to get such a layout using grid?

How to Achieve Smooth Expansion and Prevent Grid Row Gaps with Hidden Elements in CSS

I’m working on a web layout where I have a section containing visible and hidden content. I’ve implemented a button to expand the hidden content smoothly using a transition effect. However, I’m facing two main issues: While the expandable functionality works, the transition effect isn’t as smooth as I’d like it to be. I’ve applied… Read More How to Achieve Smooth Expansion and Prevent Grid Row Gaps with Hidden Elements in CSS

Why can't the div boxes in display grid shrink in order to fit in the parent container?

I have a main tag with a div class="insights" which in turn contains three divs. Using a display grid, I want to achieve a layout where these three divs lie horizontally next to each other. Surprisingly, when I write a CSS rule on that as shown below, it just can’t give me the desired layout.… Read More Why can't the div boxes in display grid shrink in order to fit in the parent container?

How to prevent image enlarging the cell in flexbox CSS

Flexbox parent width should be decided by text inside child1. image inside child2 should grow when parent grows. And parent div should grow until max-width But when I put my image inside it enlarges my parent. #parent { display: flex; flex-direction: column; min-width: 10px; max-width: 240px; } <div id=”parent”> <div id=”child1″>text here should decide parent… Read More How to prevent image enlarging the cell in flexbox CSS

Box agreement in grid layout in css

I want the first two boxes be up with the max width and the seconed two boxes be down with the max width and here are the codes. This is the CSS Code: /* Start Services */ .services { padding-top: var(–section-pading); padding-bottom: var(–section-pading); } @media (min-widht: 768px) { .services .services-contianer { display: grid; grid-template-columns: repeat(auto-fill,… Read More Box agreement in grid layout in css

the input submit is outside of Form into div

I want to create a div container who contain a form, but I have the input submit outside of the container div .container { margin: auto; width: 20%; padding: 10px; border: 1px solid #E1291B; display: grid; background-color: bisque; } .form-login { display: grid; grid-template-columns: 1fr; gap: 10%; } <div class=”container”> <div class=”title”> <h4>Connectez vous</h4> </div>… Read More the input submit is outside of Form into div

css – responsive layout having only two columns instead of five

a grid with five columns col_space are equal and flexible and they are just for space col_1 and col_2 are content columns and fixed size question – can I have the same funcionality without col_space at all ? just like this: <div class=’wrap’> <div class=’col_1′>lorem</div> <div class=’col_2′>ipsum</div> </div> .wrap{ display:grid; grid-template-columns:1fr 99px 1fr 54px 1fr;… Read More css – responsive layout having only two columns instead of five