Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    Regular Coder
    Join Date
    Jul 2011
    Posts
    172
    Thanks
    64
    Thanked 2 Times in 2 Posts

    How to add padding to this element?



    I tried:

    #search-2 {
    }

    div#search-2 {
    }

    #search2.widget.widget_search {
    }

    etc..., and none of these rules seem to be working with the search field on a sidebar.

    Thank you.

  • #2
    Regular Coder
    Join Date
    Dec 2010
    Posts
    423
    Thanks
    22
    Thanked 56 Times in 56 Posts
    Well its most likely being overridden by some other CSS
    so when you do this

    #search-2 { }

    Add
    Code:
    !important
    to any of your code.

    So like this

    Code:
    #search-2 { margin-left:20px !important; }


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •