How can I center content on my landing page | Community
Skip to main content
February 13, 2013
Solved

How can I center content on my landing page

  • February 13, 2013
  • 3 replies
  • 1463 views
I have a template with a fixed width that is centered using margin: 0 auto. The problem is that any content I add to my landing page doesn't center with the template as the window size changes because it is absolutely positioned relative to the window. Is there any way to make the content position relative to the container in the template? Or some other way to make the block content of the landing page center in the window (not center the text, but center the block of content)?

I searched for related topics, but I was unable to find one that addressed this issue. I konw how to center content with CSS; I am asking about how to center the content created using the design studio to edit a landing page.
This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by
Nevermind, I found the solution. For reference, the issue was that the <?php echo $mContext['bodyElements']; ?> tag was outside the containing element where I wanted it to be.

3 replies

Accepted solution
February 13, 2013
Nevermind, I found the solution. For reference, the issue was that the <?php echo $mContext['bodyElements']; ?> tag was outside the containing element where I wanted it to be.
February 13, 2013
You can't. Please vote for my idea.. https://community.marketo.com/MarketoDiscussionDetail?id=90650000000PWbrAAG

Actually, it wasn't an idea. So I will make it one now.  ....  and NOW. You can vote for it. https://community.marketo.com/marketoideadetail?id=08750000000IeFHAA0
February 13, 2013
ah sorry, I thought you were asking a slighhhhhtly different question.