1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

XF 1.1 Page Node Contents Width

Discussion in 'XenForo Questions and Support' started by Cory Booth, Nov 3, 2012.

  1. Cory Booth

    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%;}
  2. Jake Bunce

    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;">
  3. Cory Booth

    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
    Jake Bunce likes this.

Share This Page