The search design works fine until we get down to our "baby bear" (small mobile) size break. We have to do something different there. We make some room for it below the navigation area and then move it down into that space with absolute positioning.

We have a bunch of tweaks to do to make this somewhat drastic shift in location. We change sizing and spacing and colors and everything. What is cool is that at least we don't have to repeat markup to do this, we're reusing the exact search form markup everywhere. That's the power of CSS coming through for us.


  1. Gary A
    Permalink to comment#

    Did you ever figure out why you needed z-index on the search area? I realize that the main content area comes after the search (and so would be stacked on top) but as you alluded, it’s absolutely positioned, so it shouldn’t need it.

Leave a Comment

Posting Code

We highly encourage you to post problematic HTML/CSS/JavaScript over on CodePen and include the link in your post. It's much easier to see, understand, and help with when you do that.

Markdown is supported, so you can write inline code like `<div>this</div>` or multiline blocks of code in triple backtick fences like this:

  function example() {
    element.innerHTML = "<div>code</div>";

We have a pretty good* newsletter.