WordPress.org

Forums

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

  1. SocialSpark
    Member
    Posted 1 year 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 1 year 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. SocialSpark
    Member
    Posted 1 year ago #

    Perfect! Thanks, Chris.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • GC Testimonials
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic