WordPress.org

Forums

[resolved] help with styling the paragraph on the home page (8 posts)

  1. styx46
    Member
    Posted 2 years ago #

    Hi,
    I modified Andrina Lite theme and insert the text paragraph on the home page manually from the editor in WP.
    I manage to put the <h3> and font size is fine but the text is going now from edge to edge of the page. Can you help me fix this.
    I am new to HTML.

    Thanks

    http://www.thesunshinepalate.com/

  2. Andrew
    Forum moderator
    Posted 2 years ago #

    It looks as though you need to wrap a <div> around your text, then add padding left and right to that <div>.

  3. davejampole
    Member
    Posted 2 years ago #

    Andrew's suggestion is easier and quicker, but you could also use a table, which takes more coding and is not as modern as a <div>

  4. styx46
    Member
    Posted 2 years ago #

    Thanks a lot ,

    because of my limited knowledge of html do you mind to write what exactly to put at the front and the end of paragraph

  5. davejampole
    Member
    Posted 2 years ago #

    <p> goes at the beginning of a paragraph. </p> goes at the end. Alternatively, you could use a break tag <br /> at the end: this causes the following text to start on the next line. If you want a blank line between two lines of text, use two break tags (<br /><br />).

    The results are virtually identical.

  6. styx46
    Member
    Posted 2 years ago #

    Thanks Dave,
    this is What I already have, just don't know how to ad everything in Div and then padding

  7. davejampole
    Member
    Posted 2 years ago #

    Do a goggle search on DIV and you should get a ton of results.

  8. styx46
    Member
    Posted 2 years ago #

    got it thanks,
    I apply this code

    <div style="padding-left: 20pt;padding-right: 20pt;text-align:justify;">
    MY PARAGRAPH
    </div>

Topic Closed

This topic has been closed to new replies.

About this Topic