[buddypress-trac] [BuddyPress Trac] #4317: image space in default css
buddypress-trac
noreply at wordpress.org
Sun Feb 4 18:15:54 UTC 2024
#4317: image space in default css
--------------------------------+-------------------------
Reporter: minminloveislonely | Owner: (none)
Type: enhancement | Status: closed
Priority: low | Milestone:
Component: Core | Version: 1.5.6
Severity: trivial | Resolution: worksforme
Keywords: needs-patch |
--------------------------------+-------------------------
Comment (by arikorhonen):
There are multiple different ways to fix this problem:
change display property to block
add vertical-align: middle; to center image in div
add line-height: 0; property do the div *****
change font-size of the div to 0px; *****
I can recommend the first solution for this problem. It's the easiest one.
I don't recommend the last two solutions because it will set font-size or
line-height to all text nodes in div.
Also, font-size: 0 will affect image ALT font-size. If your image doesn't
work, your alt text won't display too (okay, it will display but with
font-size:0, so it will be invisible.
If anyone has this problem then these are the solutions. Thanks.
--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/4317#comment:4>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac
More information about the buddypress-trac
mailing list