MyBB Community Forums

Full Version: Trying to do a little theme editing
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I have attached an image file, and I am wondering what I need to add, in order to increase the space before the first letters in the words circled in red. I don't want the black lettering sitting right against the edge of the black background. I want to add some white space between them.
in general, style property like below is used in global.css of the theme to get required space
.post_content {
    padding: 9px 10px;
}
you need to add a little padding to the corresponding css selector..

add this to the global.css of your theme, open your forums and hard refresh it to see the change...

.post_body {
padding: 10px;
}

EDIT: Oops delayed reply... Toungue
(2014-12-05, 06:23 AM)mmadhankumar Wrote: [ -> ]you need to add a little padding to the corresponding css selector..

add this to the global.css of your theme, open your forums and hard refresh it to see the change...


.post_body {
padding: 10px;
}

EDIT: Oops delayed reply... Toungue

Previously, that section said:

    padding: 12px 0;

What does that second number, the zero, control?
Padding is set for top,right,bottom,left.

padding : 10px; = all padded 10 px

padding: 10px 0; = only top and bottom padded

padding: 10px 5px 3px; = top 10, left and right 5, bottom 3

padding:1px 2px 3px 4px; = paddingtop 1, paddingright 2 etc.
Edit: delayed response
please see this guidance on css padding (external site)