• Resolved Whitegoodshelp

    (@washerhelp)


    Hi. On my search results pages there is no margins or padding around the results. It’s not a functional issue but it doesn’t look as neat as it could. How can I get to the css settings so I can put some margins in there please? The test is crammed right up against the edges.

    Thanks

    Andy

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Ajay

    (@ajay)

    You can add this to the custom styles box or your theme’s styles.css

    
    #bsearchresults {
        padding: 10px;
    }

    Changing the padding as you see fit

    Thread Starter Whitegoodshelp

    (@washerhelp)

    Thanks Ajay. I tried adding that to the theme’s css file but it doesn’t work. What’s the # for btw? If I create a custom div in css don’t I need to use a dot (.) instead? And where do I add the markup for better search to use the new custom style? Can I edit a file inside bettersearch folder?

    Thanks

    Plugin Author Ajay

    (@ajay)

    The # is because that is an id and not a class. The . is for the class.

    I actually forgot to say in the previous post, can you add this into the custom styles box in the Better Search settings under the Styles tab?

    Thread Starter Whitegoodshelp

    (@washerhelp)

    Many thanks Ajay. I just put it into the styles box (changed it to 20px) and the search results page looks much, much better. Curious as to why there’s no padding at all by default though. The text was right up to the edges of the page which you never see normally. Anyway it looks great now and thanks for a great plugin.

    Plugin Author Ajay

    (@ajay)

    Glad to know that work. I have so far intentionally kept this without any styles added in the advanced mode – the main styles have been set in the custom styles box.

    This has usually been fine for the default themes, but conscious I haven’t played with backgrounds outside the main content. However, looking at your case, I think I might need to revisit the default styles. I’ll put this on the todo list.

    • This reply was modified 5 years, 8 months ago by Ajay.
Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Padding on search results’ is closed to new replies.