r/csshelp • • Jun 14 '23

Extend div width without moving text centerline?

Hi I have a div that I want to be wider than it's parent, but I don't want the text centerline to change. How can I do this?

Notice in this picture that the header is not inline with the text below because I have set the width to 120%:

https://imgur.com/a/YwUiwsR

2 Upvotes

3 comments sorted by

View all comments

Show parent comment

1

u/tridd3r Jun 14 '23

awsome, I love it when a plan comes together!