Site logo

Archived topic

how can i set up the padding ?

8 replies · Started by omer on August 28, 2016

Viewing posts 1–9 of 9

hi ,
i am trying to put a slider in my page , the problem is that i have padding spaces on the top and the bottom of the page .
i will be happy for a solution .
see this link
see this link also
thanks

Any chance you can link me to the page? That way I can inspect the code :)

Hi Omer, if you have the simple css editor plugin active try this

.site-main {
margin-top: -20px !important;
}

thanks neil ,
but if i will add another sections will it affect them as well ?

Tom will be able to answer better but I think that extra space would just be at the top after the header, so if you add another section below it should be fine.

Try it and see and if there is I am sure a bit more css will sort it.

It looks like the slider you're using is adding the CSS and javascript for the slider directly into the section with the slider instead of where they're supposed to go (CSS in the <head>, JS in the footer).

WordPress is then wrapping the CSS and JS in a paragraph tag (as WP does to all elements in the editor).

It also has text-align: center on it, so if you view the Text tab you might be able to see it.

If you do, add margin:0 to it: <p style="text-align:center;margin-bottom:0;">

But really, you should be using a slider that adds scripts and styles correctly - your website will be faster.

thanks tom

You're welcome :)

This archived topic is closed to new replies.