mirror of
https://github.com/lipis/flag-icons.git
synced 2026-04-26 09:25:50 +03:00
[GH-ISSUE #423] Empty spaces when using flag as background-image with specific width and height #261
Labels
No labels
3rd-party
3rd-party
bug
code
documentation
enhancement
fixed-in-master
flag-request
help needed
missing-flag
missing-flag
pull-request
wrong-flag
wrong-flag
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/flag-icons#261
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Humeira on GitHub (Jan 24, 2018).
Original GitHub issue: https://github.com/lipis/flag-icons/issues/423
Hello,
I wanted to add a shadow on the flag, but unfortunately it's not pleasant on the eye because of the spaces as shown in the screenshot below.
I just drop in the classes
flag-icon flag-icon-us flag-customon the div with the following CSS only specifying the width and the height.flag-custom { width: 85px; height: 85px }Is there anyway to remove these spaces?
@lipis commented on GitHub (Jan 24, 2018):
are you using the squared version?
@Humeira commented on GitHub (Jan 24, 2018):
@lipis nope only
flag-icon flag-icon-usand my custom width & height@Findus23 commented on GitHub (Jan 24, 2018):
But when you are using non-square flags and forcing them to be square via CSS there is no other way than adding spacing at the top.
To have a aspect ratio of 4:3 you'll need to use a height of
63.75px.@lipis commented on GitHub (Jan 24, 2018):
and instead of
flag-iconyou can use theflag-icon-backgroundandflag-icon-squaredbut maybe some overrides need to be done.. haven't played with squared background ones :)@Humeira commented on GitHub (Jan 26, 2018):
@lipis thanks i'll try that.