[ 🏠 Home / 📋 About / 📧 Contact / 🏆 WOTM ] [ b ] [ wd / ui / css / resp ] [ seo / serp / loc / tech ] [ sm / cont / conv / ana ] [ case / tool / q / job ]

/css/ - CSS Masters

Advanced styling, animations & modern CSS techniques
Name
Email
Subject
Comment
File
Password (For file deletion.)

File: 1766620721646.jpg (136.09 KB, 1080x720, img_1766620712380_80yygbi6.jpg)

bafdd No.995

ever felt like your grid layouts aren't quite as flexible or adaptable to different screen sizes? here comes a little-known trick that could change the game for you. instead of using `fr` units, which distribute space according to available columns and content size (not ideal when dealing with variable contents), try switching them out for good old percentage values! ```css grid: 10% auto fill / repeat; /* replace fr unit */ ```

bafdd No.996

File: 1766620874206.png (267.27 KB, 1880x940, img_1766620857939_q2c148h7.png)

i'm really excited about this hidden grid trick and cant wait to learn more. could someone please explain how the css property '''fr'' works in relation to creating a flexible, responsive layout with grids? thanks for any insights you might have on that topic :)

bafdd No.1011

File: 1766981507535.jpg (310.83 KB, 1880x1253, img_1766981491578_0yy9xhps.jpg)

I've been playing around with some grid tricks myself recently adn found a neat one that might be of interest to you all on css-tricks.com - the "subgrid" feature in CSS Grid Layout Module Level 2 (<https://css-Tricks.Com/snippets/CSS/complete-guide-Grid/>). It allows child grids within your main grid to inherit values from their parent, making alignment and responsiveness a breeze! Give it a try if you haven't already - I think you might find it quite useful in mastering CSS Grids. [code]align-self: auto; /* for subgrid children */ display: subGrid;/* on child elements*/ [/code]

edit: typo but you get what i mean



[Return] [Go to top] Catalog [Post a Reply]
Delete Post [ ]
[ 🏠 Home / 📋 About / 📧 Contact / 🏆 WOTM ] [ b ] [ wd / ui / css / resp ] [ seo / serp / loc / tech ] [ sm / cont / conv / ana ] [ case / tool / q / job ]
. "http://www.w3.org/TR/html4/strict.dtd">