Tagged: 

Viewing 13 posts - 1 through 13 (of 13 total)
  • Author
    Posts
  • #1330000

    How can I align the text to the top of the box to match the top of the picture?
    Home Interquest Detection Canines of Tennessee – Interquest Detection Canin.. 2021-11-22 at 9.04.49 AM
    Edit Page ‹ Interquest Detection Canines — WordPress - Google Chrome 2021-11-22 at 9.08.26 AM
    Edit Page ‹ Interquest Detection Canines — WordPress - Google Chrome 2021-11-22 at 9.09.32 AM
    Tried -15px padding for that block but it had no effect.
    Edit Page ‹ Interquest Detection Canines — WordPress - Google Chrome 2021-11-22 at 9.12.47 AM

    #1330070

    Hey advteksol,

    Thanks for the screenshots. Could you post a link to where we can see the actual elements as well please?

    Best regards,
    Rikard

    #1330083

    the p tag got a top/bottom margin of 0.85em

    p {
        margin: 0.85em 0;
    }

    even if you set this to Zero – there will be a litle distance.
    But what if you place a separator/whitespace line above the image with a height of 0.85em ?

    and on responsive case – that text under the image – you can set the whitespace to hide on smaller screens.

    #1330134

    Hi,

    Thanks for helping out @guenni007 :-)

    Best regards,
    Rikard

    #1330895

    That solution sorta works, but it doesn’t seem like the best way. Here’s a page link you can view:

    #1330933

    Hi,

    You can target the paragraph which you are looking to align if you add a class to it:

    <p class="my-class">Content</p>

    Then add this CSS in Quick CSS:

    p.my-class {
        margin-top: 0;
    }

    Best regards,
    Rikard

    #1331050

    That doesn’t work – the top of the paragraph still doesn’t align with the image to the left.

    #1331134

    Hi,

    Did you add this in Quick CSS?

    p.my-class {
        margin-top: 0;
    }

    Best regards,
    Rikard

    #1331365

    Yes, as per your instructions.

    #1331383

    Hi,

    It’s not applying on your site. If you need further help, then include admin WordPress login details in private.

    Best regards,
    Rikard

    #1331508

    Info below.

    #1331522

    Hi,

    You had invalid CSS in Quick CSS:

    #top .social_bookmarks li {margin: 0 8px;};

    I fixed that for you, and the CSS I sent is now applying.

    Best regards,
    Rikard

    #1331733

    Thanks, it works!

Viewing 13 posts - 1 through 13 (of 13 total)
  • The topic ‘How to align Text to match picture with two sections’ is closed to new replies.