XF 1.4 Page Padding Question

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

https://www.reefpeeps.com/pages/test_page/
 

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

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

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

Brogan

XenForo moderator
Staff member
You can just use:
Code:
<div style="padding: 25px">
    Content here...
</div>
That will apply 25px padding all around.
 

TheSalt

Active member
You can just use:
Code:
<div style="padding: 25px">
    Content here...
</div>
That will apply 25px padding all around.
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!
 
Top