WordPress.org

Ready to get started?Download WordPress

Forums

GC Testimonials
[resolved] CSS to Center Testimonial in Sidebar (3 posts)

  1. FEleazer
    Member
    Posted 2 months ago #

    I want the contents of the testimonial shown in a sidebar to be centered within the sidebar. I've tried every combination of CSS I can think of and can't get it to work. The title of the Widget is centered, but not the contents of the testimonial, name or text.

    What can I add to my CSS to fix this? Link to one of the pages on my site: http://irmoyoga.flywheelsites.com/about/

    Thanks,
    Fran

    https://wordpress.org/plugins/gc-testimonials/

  2. Chris Dillon
    Member
    Posted 2 months ago #

    Try this:

    .testimonial-widget {
      text-align: center;
    }
    .testimonial-widget .content{
      float: none;
      margin: 0 20px;
      width: auto;
    }

    To adjust the width, adjust the 20px margin instead of the width value.

  3. FEleazer
    Member
    Posted 2 months ago #

    Perfect! Thanks, Chris.

Reply

You must log in to post.

About this Plugin

About this Topic