• I’m working on my very first custom wordpress template and I’m running into trouble with positioning for search.php and only search.php

    Specifically, I’m centering the website using margin: 0 auto; in the body css, relative positioning the wrapper (container) div using position: relative; top: 0px; left: 0px; and using absolute positioning on some attributes like the logo, sidebar, and login/registration link. Everything looks and works just fine until searching… at which time the entire website is shifted to the far right of the browser window.

    Here’s the css for the page structure:

    [CSS and Code moderated as per the Forum Rules. Please use the pastebin]

    Any help is welcome and appreciated!

    Thanks!!!

Viewing 1 replies (of 1 total)
  • is the html structure of the search.ph the same as in the other php files?
    all divs opened and closed in the same sequence?

    does the rendered html of search.php validate? (as well as the other pages).
    https://validator.w3.org/

    a link would help.

    if you use a pastebin to post the code of search.php, also post the code of a php file that does center – for comparison.

Viewing 1 replies (of 1 total)
  • The topic ‘search.php not lining up with other pages on screen’ is closed to new replies.