Centre and Italicize h2 heading text on Nishita theme

  • Author
    Posts
  • #1604756

    Hi,

    I’d like to centre and Italicize my h2 heading text on my wordpress site (www.kingstonbridge.com)

    I’ve currently got the code below in place which has successfully changed the colour and made the font lowercase but has not italicized the text and I can’t work out how I can shift this text to the centre of the page.

    h2.page-title {
    color: #Fff;
    font-style: italics;
    letter-spacing: .01em;
    text-transform: none;
    }

    Thanks!

    The blog I need help with is kingstonbridge.com.

    #1604839

    hfzrhmn
    Member

    Hello, you’re close with the italics ;) Should be ‘italic’ (without s) instead.

    To center it, add

    text-align: center;

    #1604848

    Hi again,

    Thanks the text has centred and it looks great!

    The text hasn’t italicized again which is weird but I like the way it looks as it is now so not to worry.

    h2.page-title {
    font-style: italic;
    color: #Fff;
    letter-spacing: .01em;
    text-transform: none;
    text-align: center;
    }

    Thanks again

The topic ‘Centre and Italicize h2 heading text on Nishita theme’ is closed to new replies.