Forums

Search Box won't align left (3 posts)

  1. breakingranks
    Member
    Posted 3 years ago #

    I've been trying to align the search box on the sidebar of this page to the left. I don't understand why it won't go left. <Div> left doesn't work.
    The list tags that should format the same as the rest of the sidebar don't work. Putting align="left" in the form tag doesn't work.

    I don't see anything defined as going right above the search box. :(

    I tried replacing the template's search box with Search Anything, but it didn't provide a new search box. I tried replacing it with a Google search box, and there's nothing in it's code or preferences that will make it go left either.

    What is wrong? T_T

  2. cdybenko
    Member
    Posted 3 years ago #

    I'm assuming you're talking about the Google search form in the sidebar?

    From my view, it is aligned left, but it has some additional padding on the left side that is indenting it. Often forms have margins and padding that can make them break your design. It's always good to set them to zero.

    In your case, you can set the left margin of this form to zero by adding the following style to your wp4.css file.

    #menu ul li form {
    margin-left:0px;
    }

    I hope that helps!

  3. breakingranks
    Member
    Posted 3 years ago #

    Thanks for your response - that's what it looks like to me, too.

    But my confusion is that everything else is aligning left. The same CSS elements that align everything else left won't work on the search box whether it's the WP box or Google. =/

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags