Keep margin consistent between text and image when zooming


I’m very new to coding and having a lot of trouble with some simple things when creating my portfolio. For example, right now I’m stuck on how to get the margin between the text and image to stay consistent when I’m changing the size of the page. As a zoom out, the text and image get farther apart instead of shrinking together while maintaining the same distance from each other.

Is it because I haven’t specified a margin or something else? Many thanks! You all have no idea how much time I’ve spent trying to do silly things like vertically-aligning the text and image.

On the main div, remove “col-lg-12” from the class so it ends up being class=“container”.

1 Like

That did the trick, thank you!

1 Like