Centralise widget on home page

Support Area Forums Moonrise Centralise widget on home page

Viewing 4 posts - 1 through 4 (of 4 total)
URL to the page in question:
  • Author
    Posts
  • #28598
    RecipeSocial
    Participant

    Hi Bill,

    I’d like to centralise a booking widget on the 5th section of the home page.

    I’ve looked at the code you’ve given me before to align other widgets on the home page, (as seen below).

    #seven .widget:last-of-type {
    float: right;
    }

    #seven .widget:nth-child(2n) {
    margin-left: 0;
    }

    Based on the code above, would I tweak it so that it’s like this:

    #five .widget:last-of-type {
    float: center;
    }

    to get the desired result?

    Or do I need to change the widget section too, if so, what to?

    Thanks,
    Christian.

    #28604
    Bill Robbins
    Moderator

    Christian,

    You might have an easier time adding in an empty text widget before the booking widget. That should push it over for you and since there’s nothing in it, I don’t believe it will cause anything to display on the front of your site.

    Take care,
    Bill

    #28605
    RecipeSocial
    Participant

    Hi Bill,

    Ah yes, I forgot about that trick, thanks for reminding me. It’s worked fine.

    Cheers,
    Christian.

    #28606
    Bill Robbins
    Moderator

    Glad that helped out Christian 🙂

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Centralise widget on home page’ is closed to new replies.