WordPress CSS Issue

I wonder if any of you in my “vast” audience are WordPress and/or CSS gurus.

Here’s the deal….

I have this in my stylesheet:

.quotes {
margin-left: auto; margin-right: auto; margin-top: 1em; text-align: center; padding:5px; border: 3px dotted red; background-color: pink;
}

When I use it like this, nothing happens:

<div class="quotes">Choose life</div>

Choose life

But when I put in all that info as a style like this, it works fine:

<div style="margin-left: auto; margin-right: auto; margin-top: 1em; text-align: center; padding:5px; border: 3px dotted red; background-color: pink">Choose life</div>

Choose life

Why is the class being ignored in the div?

1 thought on “WordPress CSS Issue”

Comment? Sure!

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Above all, love God!