Extend blockquote width to edges of parent container

Posted in: Newspaper
Post count: 110

I have a 30px left/right padding on my Single Post Content element to keep the text from touching the edges of the column. However, I’d like the background of the blockquote to extend to the very edges of the column.

Right now I’m trying something like this:

.single-post blockquote.td_quote_box {
background: #EDF7F6;
width: 100%;
}

But as you can see this is respecting the 30px left/right padding of the Single Post Content element, and thus not actually extending to the edges: https://i.imgur.com/StGwkP1.png

If I go to 110% width to try to overflow the edges, it only overflows on the right side instead of both sides equally: https://i.imgur.com/HD29vgm.png

Any thoughts on how I can achieve this?

Post count: 35449

Hi,
Please try this custom css:
.single-post blockquote.td_quote_box {
position: relative;
left: -30px;
width: calc(100% + 60px);
}

I hope this will help you!

Post count: 110

Thanks for the reply!

Using this code:

.single-post blockquote.td_quote_box {
background: white;
position: relative;
left: -30px;
width: calc(100% + 60px);
}

Gives this result: https://i.imgur.com/OFUqxmQ.png

Removing the “+ 60px” gives this result: https://i.imgur.com/xg5pku5.png

It’s closer, but still not spanning the entire width of the parent container

The origin page is here if you’d like to take a look directly: https://alpha.roadtovr.com/another-axiom-project-a2-echo-vr-gorilla-tag/

Post count: 35449

Hi,
For me it is looks like this – https://i.imgur.com/OsK8c4c.png
Using the code I provided looks like this – https://i.imgur.com/YD7WsBq.png. The strange thing is that it should look the same to you.
Thank you!

Viewing 4 posts - 1 through 4 (of 4 total)
The forum ‘Newspaper’ is closed to new topics and replies.