[Resolved] how can i set up the padding ?

Home Forums Support [Resolved] how can i set up the padding ?

Home Forums Support how can i set up the padding ?

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #221851
    omer

    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

    #221871
    Tom
    Lead Developer
    Lead Developer

    Any chance you can link me to the page? That way I can inspect the code ๐Ÿ™‚

    #221898
    omer
    #221900
    Neil

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

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

    #221901
    omer

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

    #221904
    Neil

    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.

    #221981
    Tom
    Lead Developer
    Lead Developer

    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.

    #222023
    omer

    thanks tom

    #222032
    Tom
    Lead Developer
    Lead Developer

    You’re welcome ๐Ÿ™‚

Viewing 9 posts - 1 through 9 (of 9 total)
  • You must be logged in to reply to this topic.