• 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

TheSalt

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

TheSalt

Active member
#5
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!