SOLVED

Re: How can I center content on my landing page

Go to solution
Anonymous
Not applicable

How can I center content on my landing page

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.
Tags (1)
1 ACCEPTED SOLUTION

Accepted Solutions
Anonymous
Not applicable

Re: How can I center content on my landing page

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.

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

Re: How can I center content on my landing page

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.
Anonymous
Not applicable

Re: How can I center content on my landing page

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
Anonymous
Not applicable

Re: How can I center content on my landing page

ah sorry, I thought you were asking a slighhhhhtly different question.