WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. jzfriday
    Member
    Posted 1 year 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 Nevins
    Spam zapper & Volunteer Moderator
    Posted 1 year ago #

    Give your HTML elements classes or IDs.
    E.g

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

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

    input.myClass{
     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