[Resolved] Search Alignment In Header

Home Forums Support [Resolved] Search Alignment In Header

Home Forums Support Search Alignment In Header

Viewing 15 posts - 1 through 15 (of 30 total)
  • Author
    Posts
  • #338336
    johnzoro

    I’m managed to get the search widget in the header.

    Is there a way to center it?

    #338342
    Tom
    Lead Developer
    Lead Developer

    Try this CSS:

    .header-widget {
        float: none;
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }
    #338364
    johnzoro

    that kinda worked

    this is how it looks with that code added

    this is a mock up of what i want it to look like. i may want a “go” button after the search beox and then possibly something to the right of that like some links or text

    #338365
    Tom
    Lead Developer
    Lead Developer

    Any chance you can link me to the site?

    #338366
    johnzoro
    #338369
    Tom
    Lead Developer
    Lead Developer

    Try this as your full CSS:

    .header-widget {
        float: none;
        width: 600px;
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
        display: inline-block;
    }
    
    .header-widget .widget .search-field {
        width: 70%;
    }
    
    .header-widget .widget_search .search-submit {
        display: inline-block;
    }
    
    @media (min-width: 769px) {
        .site-logo {
            float: left;
            margin-right: 20px;
        }
    }
    #338371
    johnzoro

    Getting there! I just need it to the right of the logo instead of above?

    #338372
    Tom
    Lead Developer
    Lead Developer

    Adjusted the CSS above πŸ™‚

    #338373
    johnzoro

    That did it! You are amazing!

    Is there a way to make the search box a bit longer?

    #338378
    Tom
    Lead Developer
    Lead Developer

    Adjusted again πŸ™‚

    #338381
    johnzoro

    ace! thanks a bunch!

    #338382
    Tom
    Lead Developer
    Lead Developer

    You’re welcome πŸ™‚

    #338412
    johnzoro

    i know i’m sort of gatecrashing my own thread, but is there anyway i can change the mobile view from this

    to this? (ish)

    #338559
    Tom
    Lead Developer
    Lead Developer
    #338666
    johnzoro

    tom you are a genius

    is there a way i can have the logo on the left and maybe in the future something on the right?

    also search is coming up under logo like i mentioned but can i make it smaller so the button is to the right of the search box instead of underneath (sorry to be a pain)

Viewing 15 posts - 1 through 15 (of 30 total)
  • You must be logged in to reply to this topic.