• Skip to main content
  • Skip to forum navigation

StudioPress

  • Shop for Themes
  • My StudioPress

Forum navigation

  • Home
  • General Genesis Discussions
  • StudioPress Themes
  • Genesis Blocks
    • Genesis Blocks
    • Genesis Custom Blocks
  • Retired Themes
  • FAQs
  • Forum Rules
  • Internationalization and Translations
  • Forum Bugs and Suggestions
  • Forum Log In

Are You Using The WordPress Block Editor?

Genesis now offers plugins that help you build better sites faster with the WordPress block editor (Gutenberg). Try the feature-rich free versions of each plugin for yourself!

Genesis Blocks Genesis Custom Blocks

Search Widget CSS style HTML5

Welcome!

These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.

Log In
Register Lost Password

Community Forums › Forums › Archived Forums › Design Tips and Tricks › Search Widget CSS style HTML5

This topic is: not resolved

Tagged: css, html5, Search widget, style

  • This topic has 9 replies, 3 voices, and was last updated 12 years ago by RobCubbon.
Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • June 14, 2013 at 5:07 am #45836
    RobCubbon
    Member

    Hi, I've changed a site to HTML5 and run the CSS through the Dynamik converter

    http://dynamiktheme.com/genesis-xhtml-to-html5-css-converter/

    All well and good but the search widget refuses to play along with the other HTML elements!

    Here is the HTML for the search widget:

    `

    <form method="get" class="search-form" action="http://website.com/" role="search"><input type="search" name="s" placeholder="Search this website…" /><input type="submit" value="Search" /></form>

    `

    And here is the CSS I'm using to style it.

    `
    input{
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 3px;
    box-shadow: 0 0 5px #ddd inset;
    padding: 16px;
    padding: 1rem;
    width: 100%;
    }
    `

    In the old XHTML this created a lovely thick input box with a border and an inner shadow. But in HTML5 the padding, border, border radius and shadow declarations don't work. Although the width 100% does.

    I've tried endlessly with the selector but nothing works. I've looked for HTML5 form tutorials and the input selector should work.

    According to Developer Tools the above CSS should be working but apparently it is not.

    I don't understand.


    Rob Cubbon

    June 14, 2013 at 6:52 am #45860
    rfmeier
    Member

    Hey Rob,

    Does this happen to be live? I can take a quick look at it.


    Ryan Meier – Twitter

    June 14, 2013 at 6:56 am #45861
    RobCubbon
    Member

    Ryan, could I send you a message with the WordPress UN and PW as I don't want a dupe dev site live with links to it?


    Rob Cubbon

    June 14, 2013 at 7:06 am #45864
    rfmeier
    Member

    Rob,

    Sure, no problem. You can e-mail me at rfmeier(at)gmail.com


    Ryan Meier – Twitter

    June 14, 2013 at 7:21 am #45872
    rfmeier
    Member
    This reply has been marked as private.
    June 14, 2013 at 7:32 am #45877
    rfmeier
    Member

    Rob,

    I am seeing the box styled in Chrome, Firefox and even IE 9+. The padding, border, and color looked valid.

    However, the box shadow was not appearing for Chrome (webkit). I ran into this issue in the past once and had to dig through some old code.

    Here is how I got it to work;

    input, select, textarea, form.search-form input {
    	background-color: #FFF;
    	border: 1px solid #DDD;
    	border-radius: 3px;
    	box-shadow: 0 0 5px #DDD inset;
    	padding: 16px;
    	padding: 1rem;
    	-webkit-appearance: none; /* remove webkit appearance */
    	width: 100%;
    }

    webkit-appearance overrides styling to make the element look like 'native' controls. You would think this would be turned off by default. There may be a valid reason it is turned on. Who knows.

    If you aren't seeing the padding and border styling, try a hard browser cache reset.

    I hope this helps.


    Ryan Meier – Twitter

    June 14, 2013 at 8:17 am #45891
    RobCubbon
    Member

    Thanks, Ryan, but this must be a Mac issue. I'm seeing the search form as an ugly, default, thin version on my Chrome after repeated refreshes and on a Safari browser that has never viewed the site before. As there is nothing aobut this out there I must be doing something else wrong!!!


    Rob Cubbon

    June 14, 2013 at 10:10 am #45921
    RobCubbon
    Member

    Discount my earlier message. The above fix from Ryan worked. 🙂


    Rob Cubbon

    September 9, 2013 at 1:20 pm #61563
    genevishgraphics
    Member

    I think I am having a relevant issue myself. I am trying to get RID OF the box-shadow of the Search Box and cannot remove it for Chrome and Safari no matter what I do!
    I have tried -moz-box-shadow: none!important;
    -webkit-box-shadow: none!important;
    box-shadow: none!important;
    On input and search and everything, nothing will get rid of the ugly drop shadow - only Firefox doesnt display the shadow. I am using a Mac, is it mac related or is it mac/browser related or what? Thanks!

    September 10, 2013 at 7:05 am #61663
    RobCubbon
    Member

    Hi, genevishgraphics, are you using the Genesis sample child theme?

    Around about line 200 of the style.css you have something like:

    
    input, select, textarea {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 3px;
    box-shadow: 0 0 5px #ddd inset;
    padding: 16px;
    padding: 1rem;
    width: 100%;
    

    Just deleting the box-shadow: 0 0 5px #ddd inset; may be the answer?


    Rob Cubbon

  • Author
    Posts
Viewing 10 posts - 1 through 10 (of 10 total)
  • The forum ‘Design Tips and Tricks’ is closed to new topics and replies.

CTA

Ready to get started? Create a site or shop for themes.

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2025 WPEngine, Inc.

Products
  • Create a Site with WP Engine
  • Shop for Themes
  • Theme Features
  • Get Started
  • Showcase
Company
  • Brand Assets
  • Terms of Service
  • Accptable Usse Policy
  • Privacy Policy
  • Refund Policy
  • Contact Us
Community
  • Find Developers
  • Forums
  • Facebook Group
  • #GenesisWP
  • Showcase
Resources
  • StudioPress Blog
  • Help & Documentation
  • FAQs
  • Code Snippets
  • Affiliates
Connect
  • StudioPress Live
  • StudioPress FM
  • Facebook
  • Twitter
  • Dribbble