We help IT Professionals succeed at work.
Get Started

CSS centre text in slider caption

regisit
regisit asked
on
295 Views
Last Modified: 2012-05-12
DIV image
In the above markeup I'm trying to centre the text "Best dental care for your family" within the caption box that is 660x40. This is a SliderPro slider in a Wordpress site. But I can't get it centered - remains stubbornly left! I've added custom styles as per:

.advanced-slider { margin: 0 auto; }
.advanced-slider .caption .wrapper .content { margin: 0 auto; }

The 1st gets the slider as a whole to centre in the post. the 2nd has no effect. Essentially I'm trying to get the content div to centre in the wrapper div. Tried the same with just .advanced-slider.caption.wrapper but same result.

Any ideas?

[Yes, SliderPro should come with options to align text within the caption box, but it doesn't!]
Comment
Watch Question
Commented:
This problem has been solved!
Unlock 1 Answer and 5 Comments.
See Answer
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE