WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] search messes up layout (4 posts)

  1. ahmschober
    Member
    Posted 2 years ago #

    Hi there,

    I'm having a problem with my search.php. When I run the search, the whole site slides to the right.

    I have tried removing anything but a heading to see whether I omitted a tag or something similar, but the problem remained.

    If you could take a quick look at it, that would be a great help!

    Thanks!

    http://theuglyandunpopular.com/?s=ef

  2. esmi
    Forum Moderator
    Posted 2 years ago #

    Start by sorting out the markup errors. Then move onto the CSS errors.
    http://codex.wordpress.org/Validating_a_Website

  3. alchymyth
    The Sweeper & Moderator
    Posted 2 years ago #

    apart from the validation error which need to be fixed, there is a conflict of the body_class of the search results page and this existing style in style.css:

    .search {
    	margin: 8px 4px 5px 0px;
    	padding: 2px 0px 2px 0px;
    	border: solid 1px #CCC;
    	float: right;
    	width: 280px;
    }

    to avoid the conflict, change that to:
    #wrapper .search { ....

  4. ahmschober
    Member
    Posted 2 years ago #

    Thank you both for your inputs! The css-style did the trick for now, I'll have a go at fixing all the validation errors in near future.

    Cheers,

    Alex

Topic Closed

This topic has been closed to new replies.

About this Topic