Skip to:

Search button far from input box

  • I added a search box to header.php using this code:

    <?php search_form( $q ); ?>

    However, the search button shows up all the way on the right side of the page and below the input box. Does anyone have any suggestions?

    Here is my (work-in-progress not live) forums site where you can see the problem.

    Thanks so much,


Viewing 2 replies - 1 through 2 (of 2 total)

  • chrishajer


    Looks fine in Firefox 3 or IE7 on Windows XP.

    Does it happen with the stock theme?

    Does your HTML validate?

    My guess is that it’s improperly marked up code causing it to do that to you. For example, you are using an unordered list <ul> in the sidebar, but you’re not using any list items <li>. That will surely cause problems. I’d fix the invalid markup before trying to fix this specific layout issue.

    Thanks for the reply. I actually found a different theme that suits my purposes better, but I appreciate your response. I will use your tip at a later date, I am sure.

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.
Skip to toolbar