How do you center assets on a landing page? | Community
Skip to main content
October 15, 2013
Question

How do you center assets on a landing page?

  • October 15, 2013
  • 3 replies
  • 1192 views
It's driving me crazy. Yes, I know you can control the grid, but the grid never gives you a center point on the page. This makes aligning assets a pain in the butt.
This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

3 replies

October 15, 2013
I always just use the grid, as you mentioned. If there isn't another way, there should def be an idea made about this!
Level 7
October 16, 2013
Hi Cezary:

You could click on the background and then open the properties palette at the top right. There you can see the width of the page in pixels.

Then you place your image, click on it, and get its width from the property palette.

Subtract the width of the image from the width of the page, then divide by 2.

Enter the result into the image properties - "Left".


Example:

Your page is 900 pixels wide.

You want to center an image that is 600 pixels wide.

(900-600)/2 = 150

The Left positioning of your image will be "150px"
October 16, 2013
Nicole - thanks for the solution, but it's ridiculous to do math just to align images. Can you submit a feature request to your team  to add a midpoint line on visual editor, or guides that are aligned with the middle of the page (rather than randomly)?