Site logo

Archived topic

Center Content to the middle of a page (desktop)

9 replies · Started by scometamus on March 15, 2023

Viewing posts 1–10 of 10

Dear GP-support team,

on a single page I'd like to center the content. Currently everything is at the top, but I'd like to have it centered in the middle of the screen on desktops and tablets. For mobile this obviously wouldn't apply, there the vertical alignment is nice.

How do I do this though? I fiddled around with the Layout element and the container alignment, but for the latter it looks different on computer sizes or at least I didn't manage to fully center it.

Thanks in advance!

That worked perfectly, thanks!

One follow-up question: Now on the site the copyright text (implemented via custom html) is not centered anymore, although the headline above is. Instead the copyright text is attached to the right of the images.

This unfortunately did bring everything back to the beginning. So the content is not centered in the middle of the page anymore.

Oops, I'm sorry, there was a syntax error in my code, I've updated it again :)

Oh! Haha saw it too now, perfect. It's in the middle and centered again!

However, the copyright container is still on the right side.

Update: Couldn't solve the issue by its core, but in a roundabout way: For simplicity I wanted to change the copyright container to an element so I don't have to take care on it on each site. So when I do this, it is centered correctly as the rest of the content.

For simplicity I wanted to change the copyright container to an element so I don’t have to take care on it on each site.

This is the right thing to do :)

Glad you've sorted out!

This archived topic is closed to new replies.