Site logo

Archived topic

Getting Icons To Align With The First Line Of A Headline Block

9 replies · Started by Jodie on March 12, 2023

Viewing posts 1–10 of 10

Hi, how can I ensure my icons are properly aligned with the first line of a headline block on GeneratePress? When I try to write content in a headline block that uses multiple lines, the icon aligns itself with the middle of the block, which I don't want. Thanks for your help!

Hi there,

it would require CSS:

.floated-icon {
    display: block !important;
}
.floated-icon .gb-icon {
    float: left;
    position: relative;
    top: 5px;
}

And then add the floated-icon class to the headlines you want to apply it to.

Hi David, thanks for that! Can I indent the entire content in the headline, so it matches up with the first line? I've attached a screenshot, so you can see what I mean.

If you just want the icon to be at the top instead of center.
Then select the headline block with the icon, and in the Layout options set the align content to flex start ( the top align icon )

Hi David, that's great, thank you. I just want the icon in line with the first line of text of the headline block. Is that possible? Thanks so much for your help!

Hi Fernando, I tried that, but it doesn't achieve the outcome I'd like it to. Any ideas on how to fix it? Thank you as always!

Thanks very much Fernando

You're welcome, Jodie!

This archived topic is closed to new replies.