How can I give the default search widget a style? (2 posts)

  1. jzfriday
    Posted 2 years ago #

    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 http://rocketrock.jzfstudio.com/es

  2. Andrew
    Nuh uh moderator
    Posted 2 years ago #

    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

Topic Closed

This topic has been closed to new replies.

About this Topic