Tagged: Icon alignment, icon list
I have multiple lines of text, each with an avia icon to the left of the text.
Is it possible to align the icons centered vertically above themselves… and also align them horizontally centered with the respective line of text?
I’m basically trying to replicate the look of an icon list without actually using that element. My pages are auto-generated by submissions and using the icon list element in the template gets problematic.
Example URLs are attached — you can see how jumbled the layout is.
Hey nV15OoBtg21iTn5z,
Please try the following in Quick CSS under Enfold->General Styling:
.su-box-content p.with_icon span.av_font_icon {
margin-top: 7px;
}
Best regards,
Rikard
The CSS worked (actually 5px was better) — but I found that depending on the number of lines the alignment was still off.
I had to wrap each individual line in <p>. Otherwise, the alignment only worked when there were 6 lines.
It’s good now. Thank you!