XF 1.1 Page Node Contents Width

Cory Booth

Well-known member
One more question for the evening...

I am using page nodes for various pieces of my site. I like the auto-created page node navigation box.
The problem I have when it is enabled, the center contents is distorted because of the navigation box.

In other words, when the whole page is centered, the part next to the navigation box is further to the right than the part below the navigation box.

I have worked around this issue by using width="70%" on the page, but I'd like to make the entire page node contents area width=70%

Is there an easy way to do this?


Maybe something like this in extra.css?

.ugc baseHtml {width: 70%;}

Jake Bunce

XenForo moderator
Staff member
Wrap the contents of your page node with a div that has a left margin. Example:

<div class="messageText ugc baseHtml" style="margin-left: 150px;">



Cory Booth

Well-known member
Actually the issue for me is I am using the plugin I had created by xfrocks (WYSIWYG Page Editor)...
Therefore I am not allowing my admins to insert straight HTML in the page node template.

But I found a work around...

Using TMS I did this...

I edited the pagenode_container template and added this

    <xen:hook name="pagenode_container_article">
    <article><table width="70%" align="center"><tr><td>{xen:raw $templateHtml}</td></tr></table></article>
Not the most elegant - but works well