[Support request] Mixing HTML font sizes

Home Forums Support [Support request] Mixing HTML font sizes

Home Forums Support Mixing HTML font sizes

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #775156
    Louis

    I need to put smaller text (paragraph) on the same line as H2 or H3 tag text. I don’t want to have to use a hard return. I tried adding it in HTMl but it did not work.
    Thank you for your help.

    #775166
    David
    Staff
    Customer Support

    Hi there,

    you would need to do something like this:

    <div class="custom-inline">
        <h2>My H2</h2>
        <p>My pargraph</h2>
    </div>

    And this CSS:

    .custom-inline > * {
        display: inline;
    }
    .custom-inline h2 {
        margin-right: 0.5em;
    }
    #775173
    Louis

    Thank you David.
    Do I add the CSS in the Simple CSS below the other CSS?
    https://mindiq.com/wp-admin/themes.php?page=simple-css

    #775213
    David
    Staff
    Customer Support

    Yep, personally i always add CSS to the top first to test it, and then move it to somewhere more appropriate if you have it organised. Reason being, if there is an error in your existing CSS then this can break any code that is below it 🙂

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