How do I center my post titles?
-
Does anyone know how I might center my post entry-titles (as well as the by/date/comment section below) over my entire content area?
Right now, everything is flush-left.
Thanks for your help.
The blog I need help with is: (visible only to logged in users)
-
Hi Alaina,
Add this to your h2 active style: “text-align: center;” so that it reads:.wf-active h1, .wf-active h2, .wf-active h2 a, .wf-active h2 a:visited { font-family: skolar-1,skolar-2,"Oswald",arial,serif; font-size: 26px; font-style: normal; font-variant: normal; font-weight: 400; } -
@zandyring, I usually recommend using !important declarations instead of .wf-active since those are less portable (they’re specific to WordPress.com). However, I don’t think either of those is needed in this case and you can do it with less CSS. Check out the example below.
To center the post title and byline for posts in the Minimum theme, add this to your Appearance → Custom Design → CSS editor:
.entry-title, .post-info { text-align: center; } -
- The topic ‘How do I center my post titles?’ is closed to new replies.