center widget (or add a margin to left and right

Community Forums Forums Design Tips and Tricks center widget (or add a margin to left and right

This topic is: not resolved

This topic contains 3 replies, has 2 voices, and was last updated by  Matt Mizwicki 4 months, 3 weeks ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #113564

    gregpayette
    Participant
    Post count: 26

    I can float left. I can float right.

    But I’d like to center an entire widget, keeping it at 95% width so there’s a touch of space on either side.

    (The specific widget is the executive pro theme…CTA widget)

    Thanks for any help.

    #113597

    Matt Mizwicki
    Participant
    Post count: 35

    You should be able to add (or change what is already there) something like this to your css file…

    
    .name-of-actual-widget-class{
    width: 95%;
    margin-left: 2.49%;
    margin-right: 2.49%;
    }
    
    #113625

    gregpayette
    Participant
    Post count: 26

    Perfect Matt. Thanks for the help. – Greg

    #113629

    Matt Mizwicki
    Participant
    Post count: 35

    No worries! Glad i could help.

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.