All Questions
60 questions
0
votes
1
answer
31
views
How to change the height of an element in the up direction and have above neighbors react accordingly?
There is a list of collapsible sections. When a section is opened it needs to move (change height) in the up direction so that the elements above it move and the elements below it don't move. Note ...
0
votes
1
answer
30
views
How do I auto-add a vertical scrollbar to a vertical flex: 1 element inside another vertical flex: 1 element?
I'm trying to achieve a chat-service-like layout with HTML/CSS where the entire page takes up 100% the height of the screen, the header and footer are dynamic based on their nested markup and the ...
0
votes
0
answers
631
views
How to stop td / tr from taking up all available height?
I set the height of my table to a specific height so I could use overflow-y: scroll on it, and this caused the tds to expand to fill all the available height. I have tried changing height to max-...
0
votes
1
answer
60
views
@media only screen and (max-device-width) images width and height definition
I have a problem with width and height of images on the smartphone. I use this code. But I don't know why on the smartphone it also uses the same height of 13em like on desktop screen. All other ...
2
votes
2
answers
159
views
CSS: When flex row wraps, how to keep scrollable column from being pushed down below its container's fold?
In a fixed-height container, I have a flexbox (.main) with flex-direction: row and flex-wrap: wrap. At a wide screen size, I'd like its children — an image (.image-column), and a long amount of text (....
1
vote
0
answers
36
views
Expand element height when content is added to the next one
I'm working on a web-app where the layout is the next :
A left-side navigation menu
A right-side body for content
My problem is that even though both sides height: 100% when content is added to the ...
2
votes
1
answer
6k
views
Tailwind CSS list with Static header and footer with Scrollable Area in middle
I am trying to create a dashboard layout that is a 3 column using Tailwind CSS.
I have - Header on the top, List in middle, and Button at the bottom position. I want the entire component's height not ...
0
votes
1
answer
446
views
css parent position changing with child height change
I can't figure out why changing the height of an svg is offsetting the position of the parent div. See this vid example:
youtube
the bottom div remains in place. the transport div becomes offset from ...
0
votes
0
answers
43
views
CSS: Maintaining consistent paragraph height as browser resizes
I'm working on a Frontend Mentor challenge and I hit a wall trying to make the design properly responsive. I'm using viewport units for the font size and it works great as long as I keep the browser ...
2
votes
2
answers
1k
views
How to make elements take 100% of their parent's space?
I have some links that I need to take up 100% of the height available to them, unfortunately I can't get it to work
JSFiddle Version (you can try it out yourself): JSFiddle With Same Exact Code
*...
0
votes
1
answer
100
views
Adjust element the same height as container panel
I have a container panel which has the possibility to expand. Inside the container panel I have an element which I want to adjust it the same height when expanded and when not expanded. How can I do ...
0
votes
0
answers
84
views
how to get grid-area's real size in Grid layout
editted
the reason why I cannot get the grid-area's height and width is that I am using Vue as my UI framework, and it will group web changes together as one tick.
my current solution is to get grid-...
0
votes
0
answers
25
views
Get div to scroll if height exceeds xx% with another dependent div occupying remaining height of page. [duplicate]
I am trying to create a page that has 6 vertically stacked divs (from top to bottom: A,B,C,D,E,and F). Divs B,C,D, and F all use static pixel sizing for height (only divs A and E are of variable ...
0
votes
4
answers
437
views
CSS stop div height from extending past viewport + make topnav stick when scrolling
I haven't done much frontend - My question is twofold, my .row div is pushing past the viewport when height is set to 100% - I'm guessing this is to do with the relative/fixed position interaction ...
2
votes
1
answer
8k
views
CSS Grid full height
How can I create a full height CSS grid layout if the content is longer than the created grid?
In the example I've created a explicit grid with 16 rows, so I want to create some sort of implicit grid ...