“Not Found” Search Button
-
Please see screenshot as my site is still being developed. I referenced this topic on wordpress.com https://wordpress.com/forums/topic/rebalance-theme-how-to-add-search-to-the-header-of-the-site/ for moving the search box in the desktop view to top-right. Note: I wasn’t able to get the code to work on tablet/mobile (the search box would overlap the featured hero image on the portfolio project detail pages. So I decided to just try to get it to work on desktop. This is my code with corresponding screenshot.
/*Make top search submit button appear to be just to right of search input box and align with line underneath it*/ @media screen and (min-width: 880px) { .search-submit { float: left; right: 0; position: absolute; } } /*Change width of search input box*/ @media screen and (min-width: 880px) { .widget_search .search-field { margin-bottom: 1.5em; width: 90%; height: 1.1em; } } /*Make search-form appear in header on desktop*/ @media screen and (min-width: 880px) { .widget-area .widget_search { position: absolute; top: -220px; right: 0; } }
However I think my
right: 0;
in first section of the code is causing a problem with the “Nothing found” search button (bottom of screen). It is causing the button to be moved too far to the right of its input box? Any ideas on how to fix my CSS? Thank you.The page I need help with: [log in to see the link]
- The topic ‘“Not Found” Search Button’ is closed to new replies.