-
jyotsna4amit
Hello,
I have a sidebar element for blog posts.
The format looks very weird and there is a lot of space between the image and title. What could be the reason?
See this https://postimg.cc/CBcrpbNP
I want it to look something like this: https://postimg.cc/TLn2kYJ3
Kindly help.
-
Hi there,
You’ve set the image’s parent container
widthto be30%, try to increase the value. -
jyotsna4amit
Hello Ying,
Thanks for the help.
I changed the grid’s settings to this: 3fr 5fr (BTW, can you share any documentation on what these dimensions mean?). Pls see the image https://postimg.cc/Kkrz7Mdf
Its looking better.
But there is a lot of gap between the rows. Please see this. https://postimg.cc/fkDkz89r
How can I reduce that?
Cheers!
-
Alvind
Hi there,
The Fractional Unit (fr) is a standard CSS concept used in grid layouts. You can find plenty of resources explaining it, but this article by DigitalOcean provides a clear and concise explanation:
https://www.digitalocean.com/community/tutorials/css-css-grid-layout-fr-unitTo reduce the gap between rows, try removing the bottom margin from the Image block.
- You must be logged in to reply to this topic.