[Resolved] Centre text above excerpt tiles on front page?

Home Forums Support [Resolved] Centre text above excerpt tiles on front page?

Home Forums Support Centre text above excerpt tiles on front page?

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #568624
    Hakim

    How to do the above?

    Thank you for being here!
    Hakim

    #568630
    Tom
    Lead Developer
    Lead Developer

    Hi there,

    Which text exactly?

    #568633
    Hakim

    This is the post title that appears above the image at the top of the tile.

    #568676
    Hakim

    I had assumed you would know what I was talking about as my website address was included with my messages.
    below is the website and as you can see, the titles are left aligned above the centred image but are not themselves centred which is the desired position. I would also like to be able to split the title over two lines if possible so that the second tile would break after “What is Sufism?” with the rest of the title below it, also centred.

    https://inayatiorderaustralia.org/

    Could you recommend a good book or website for learning html and css?

    Thanks again
    Hakim

    #568940
    Tom
    Lead Developer
    Lead Developer

    You can use this CSS to center them:

    h2.entry-title {
        text-align: center;
    }

    I don’t believe it’s possible to create a line break within CSS. You could try adding a <br /> element to the title, but it’s not always the best idea to add HTML to the post titles.

    #570405
    Hakim

    Many thanks Tom.
    Hakim

    #570689
    Tom
    Lead Developer
    Lead Developer

    No problem 🙂

Viewing 7 posts - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.