Support » Themes and Templates » How can I give the default search widget a style?

  • jzfriday


    I just started to learn php, css and html codes and don’t know so much, I need your help.
    I want to style the search box that I put in the header of my website with a widget, I put a padding-left: 1275px, and a padding-top: 80px; and I saw in chrome pressing f12, looks good but how do I put the code in my style.css file or searchbox.php, etc.?

    My website is

Viewing 1 replies (of 1 total)
  • Moderator Andrew Nevins


    Forum moderator

    Give your HTML elements classes or IDs.

    <input type="text" class="myClass" />

    Then in your stylesheet, you can select certain HTML elements and style them accordingly.

     padding-left: 1275px;
     padding-top: 80px;

    Try putting it in style.css

Viewing 1 replies (of 1 total)
  • The topic ‘How can I give the default search widget a style?’ is closed to new replies.