-
Anonymous
hi , pls check this screenshot
It is one image on the right,
I need to make the top and bottom edges of the image match the top and bottom edges of the background color. How can I adjust it?
please help to fix that, thanks
-
George
Hello.
1. Set image to Display as
Block.
2. Set its container to have
margin-top: -0.5rem,margin-bottom: -0.5rem,margin-right: -10px.
-
Anonymous
hi George
Thanks for your details.
1. Yes, done with your steps, but still there is gap between the images and backgroud container on the top and bottom,?
2. one more question, pls check https://prnt.sc/77vkaJyt4XtN
when and how to choose the display style inside the Layout ?
What is the basis for the judgment?
for example ,just now from default to block?
thanks
-
George
Hello.
1. Remove the margin values that I gave you earlier. For the
gb-element-c3e94a1acontainer, set padding values to0. For the text container which is thegb-element-5c62e3c9one, set padding-top and padding-bottom to0.5rem. Set padding-left and padding-right values to10px;2. Images are inline elements by default, so they sit on the text baseline — and that gap you’re seeing when Display is set as
Defaultis the space reserved for descenders (the tails on letters like g, y, p).
When you set display: block, the image is no longer treated as an inline/text element, so it doesn’t need that descender space anymore. When you setdisplay: block, the image is no longer treated as an inline/text element, so it doesn’t need that descender space anymore. -
Anonymous
Hi, George
I think i have followed your steps, but still there is gap on the top and bottom,
sorry again, pls help to fix that, thanks
i have attached temporaty access link to check it for you
thanks
-
Anonymous
Hi, George
I think i have followed your steps, but still there is gap on the top and bottom,
sorry again, pls help to fix that, thanks
i have attached temporaty access link to check it for you
thanks
-
Alvind
Hi there,
Select the gb-element-620b289c Container block and set its Height to 100%.
Then select the Image block inside it, set Object Fit to Fill, and set the Height to 100%.
-
Anonymous
-
Alvind
It’s under the Sizing settings.
-
Anonymous
hi
Alvindyes, perfect
i love you
good day for you -
Alvind
Glad to hear that!
- You must be logged in to reply to this topic.