{"id":1609,"date":"2009-06-26T17:44:34","date_gmt":"2009-06-27T00:44:34","guid":{"rendered":"http:\/\/eaf.net\/mvp\/?p=1609"},"modified":"2009-06-26T18:04:06","modified_gmt":"2009-06-27T01:04:06","slug":"wordpress-css-issue","status":"publish","type":"post","link":"https:\/\/www.eaf.net\/mvp\/2009\/wordpress-css-issue\/","title":{"rendered":"WordPress CSS Issue"},"content":{"rendered":"<p>I wonder if any of you in my &#8220;vast&#8221; audience are WordPress and\/or CSS gurus.<\/p>\n<p>Here&#8217;s the deal&#8230;.<\/p>\n<p>I have this in my stylesheet:<\/p>\n<p><code style=\"background-color:#cccccc\">.quotes {<br \/>\n\tmargin-left: auto; margin-right: auto; margin-top: 1em; text-align: center; padding:5px; border: 3px dotted red; background-color: pink;<br \/>\n}<\/code><\/p>\n<p>When I use it like this, nothing happens:<\/p>\n<p><code style=\"background-color:#cccccc\">&lt;div class=\"quotes\">Choose life&lt;\/div><\/code><\/p>\n<div class=\"quotes\">Choose life<\/div>\n<p>But when I put in all that info as a style like this, it works fine:<\/p>\n<p><code style=\"background-color:#cccccc\">&lt;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&lt;\/div><\/code><\/p>\n<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>\n<p>Why is the class being ignored in the div?<\/p>\n<!-- AddThis Advanced Settings generic via filter on the_content --><!-- AddThis Share Buttons generic via filter on the_content -->","protected":false},"excerpt":{"rendered":"<p>I wonder if any of you in my &#8220;vast&#8221; audience are WordPress and\/or CSS gurus. Here&#8217;s the deal&#8230;. 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: &lt;div class=&#8221;quotes&#8221;>Choose life&lt;\/div> Choose life &#8230; <a title=\"WordPress CSS Issue\" class=\"read-more\" href=\"https:\/\/www.eaf.net\/mvp\/2009\/wordpress-css-issue\/\" aria-label=\"More on WordPress CSS Issue\">Read more<\/a><!-- AddThis Advanced Settings generic via filter on get_the_excerpt --><!-- AddThis Share Buttons generic via filter on get_the_excerpt --><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","enabled":false},"version":2}},"categories":[13],"tags":[716],"class_list":["post-1609","post","type-post","status-publish","format-standard","hentry","category-tech-stuff","tag-wordpress"],"jetpack_publicize_connections":[],"aioseo_notices":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/prJUJ-pX","jetpack_sharing_enabled":true,"jetpack_likes_enabled":true,"_links":{"self":[{"href":"https:\/\/www.eaf.net\/mvp\/wp-json\/wp\/v2\/posts\/1609","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.eaf.net\/mvp\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.eaf.net\/mvp\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.eaf.net\/mvp\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.eaf.net\/mvp\/wp-json\/wp\/v2\/comments?post=1609"}],"version-history":[{"count":0,"href":"https:\/\/www.eaf.net\/mvp\/wp-json\/wp\/v2\/posts\/1609\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.eaf.net\/mvp\/wp-json\/wp\/v2\/media?parent=1609"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.eaf.net\/mvp\/wp-json\/wp\/v2\/categories?post=1609"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.eaf.net\/mvp\/wp-json\/wp\/v2\/tags?post=1609"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}