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

XF 1.4 Page Padding Question

Discussion in 'Styling and Customization Questions' started by TheSalt, Mar 3, 2015.

  1. TheSalt

    TheSalt Active Member

    Hello Gang,

    I'm starting to tinker around with making pages. I'm very new to HTML so lots to learn. I was wonder if there is a way increase the left and right margin/padding on the pages without effecting the margin/padding on threads? Thank you for any help.

    Screen Shot 2015-03-02 at 9.12.46 PM.jpg

  2. Brogan

    Brogan XenForo Moderator Staff Member

    You can just wrap your page node content in a div which has the margin/padding applied to it.
    TheSalt likes this.
  3. TheSalt

    TheSalt Active Member

    I found this. It seems to be working but I'm not sure it's the best code to use?

    <div id="fourb" style="background-color: #effffe; padding: 25px;">
  4. Brogan

    Brogan XenForo Moderator Staff Member

    You can just use:
    <div style="padding: 25px">
        Content here...
    That will apply 25px padding all around.
    TheSalt likes this.
  5. TheSalt

    TheSalt Active Member

    Oh, Thank you! I had the feeling the color wasn't needed. I tried removing it but it wasn't working for me. I'm sure I was leaving something out. Thank you "again" Brogan!

Share This Page