Skip to main content

All Questions

Tagged with
0 votes
1 answer
53 views

Flexbox with column is not providing the desired output in CSS

I have an HTML layout styled with flexbox, but the current CSS isn't achieving the desired layout. I want the second row of the second column to begin immediately after the first columns second row. ...
Someshver Thakur's user avatar
1 vote
2 answers
55 views

How to make div at right side of horizontally justified (centered) element. In Tailwind or CSS

How to make this to be exact:- In the above there is a div justified at the center, and then another div next to it. The width of both the div's changes with animation and buttons. <script src=...
Sidharth Bajpai's user avatar
-1 votes
2 answers
31 views

Flex elements do not take all the available space before breaking into a new line

I'm trying to achieve the next design, where the elements take all the available space before breaking into a new line and also keeping the text centered: Right now I'm using these styles in the ...
Alf23's user avatar
  • 59
0 votes
1 answer
34 views

grid css 2 column and second column with 2 rows

I am new to the grid css and I want to achieve somenthing like this I'm stuck with the first one and can't fix the proper ordering of the 2nd column Here's what I did .image-wrapper { display: ...
raf's user avatar
  • 185
0 votes
0 answers
20 views

Make a div the same width as its preceding sibling [duplicate]

I have the following structure that I can't change to add or remove elements: <div class="container"> <img src="image.png"> <div class="caption">A ...
elias.delatorre's user avatar
0 votes
3 answers
79 views

css max height on parent with overflow on child

How to make .col element 100% of .container? .wrapper { max-height: 300px; display: flex; } .container { flex-grow: 1; display: flex; overflow-y: auto; overflow-x: hidden; gap: 10px;...
kkachniarz's user avatar
2 votes
1 answer
71 views

How to fill all available space with flex box

Image of what I'm trying to do I have three flex containers and I want to get them to fill out the space available in the most efficient way possible. I want the toggles below the heading to be ...
Chad French's user avatar
1 vote
0 answers
22 views

Hovered modal not getting positioned properly

So basically this is calander and there are 30 boxes(calendarBox) representing each date of a month. So when I hover over any box then the eventDetails modal should up I applied the CSS to achieve ...
Pixel's user avatar
  • 49
0 votes
2 answers
53 views

Recreating the gradient effect inside two div elements

Long story short, I'm trying to create a wallpaper generator, in which we select two colors, we set the page background to the gradient, and we have two 'cards' or div elements that also have the ...
duhovicm's user avatar
0 votes
0 answers
32 views

Monitor Screens vs Scroll Bar variations with Page Layout Shift

I have a use case where I have to enable or disable scrolling based on some condition. I am developing this for both Mobile and Desktop environment. Lets say condition is onClick of some component - ...
Ronnie's user avatar
  • 541
1 vote
1 answer
89 views

Extra space is getting added before text - Angular tree view CSS

I am creating this nested tree view component in Angular. All the stylings are working fine but for the nested tree first element extra space is getting added before the text which i am not able to ...
blume0F's user avatar
  • 109
0 votes
1 answer
46 views

Make a DIV to take the remainder of the parent's width -AND- to also take the parent's height [duplicate]

We have this markup: <div class="parent"> <div class="child-1"> Hello World! </div> <div class="child-2"> </div> </div&...
karlosuccess's user avatar
0 votes
0 answers
49 views

My elements from index.html are not distanced properly

I am a complete beginner, I learned HTML and CSS for a month or two. I follow a course and I must compile this sass code and this must show exactly as figma. Sadly, I don't know how to make those ...
Nicolae Gabriel Alexandru's user avatar
0 votes
2 answers
123 views

how to enable the scroll bar in the text area when using pointer-events: none

scrollbar is disabled when I used the pointer-events: none css in the text area. I want the scroll bar to be enalbed to scroll and view whole content but the textarea shouldn't be editable. I want to ...
shanmuga priya's user avatar
-4 votes
1 answer
45 views

Achieving consistent card placement in responsive layout with flexbox [closed]

I am currently working on a React project that involves displaying a set of cards inside a container. Each card has a fixed size of 231x237px. I have used flexbox for the layout of the cards. I want ...
Artcchi's user avatar

15 30 50 per page
1
2 3 4 5
28