- This topic is empty.
-
AuthorPosts
-
February 16, 2018 at 1:40 am #267032osherezParticipant
Hey all thanks to all in advance,
I’m running with an issue when changing to RTL language and Font Awesome. It seems to me that there
is no easy way to position the icons to the right and keeping the text aligned no matter the length. you can check out this Fiddle link to see what I mean.Hoping you guys have a better solution to this Cheers :)
February 16, 2018 at 8:32 am #267043Paulie_DMemberI’m not sure what the intended result is supposed to look like.
Can you explain further?
February 17, 2018 at 12:31 pm #267106osherezParticipantHey Paulie_D,
First of all thanks :). there is an issue when using RTL languages with ul list and font awesome.
I’m trying to make a ul list that is centered to the middle of the div while keeping the FA icons aligned to each other no matter how long the text is.I’v managed to do so With English following a stack-overflow thread, but In Hebrew it doesn’t work. the length of the text breaks the alignment of the icons. hope I’m more clear now.
you can check the fiddle bellow for more visual understanding thanks.
February 17, 2018 at 1:08 pm #267114Paulie_DMemberUnfortunately, a description isn’t really clear to me…it’s probably my fault.
Do you have an image of what this is supposed to look like?
I’m assuming that the absolute positioning of the icons is a FA thing…but I haven’t seen it used like that before.
February 17, 2018 at 1:23 pm #267124osherezParticipantFebruary 17, 2018 at 1:25 pm #267125Paulie_DMemberHmmm…I suspect it could be done but my tinkering suggests that you’d have to re-write FA’s CSS to do it.
I’ll have a think though.
February 17, 2018 at 1:40 pm #267134Paulie_DMemberOk….it seems to me that this issue is the absolute positioning used in the
.fa-li
class.If we lose that, we can tinker with flexbox to get this to work.
https://codepen.io/Paulie-D/pen/eVyrQL
It’s a quick and dirty solution but I think it works.
February 17, 2018 at 1:48 pm #267140osherezParticipantYou are a magician :))
plus I’v font one more solution using:direction:rtl
list-style-position: inside;
but, I’m glad I’v learned something new with your option thank you appreciate a lot :)
-
AuthorPosts
- The forum ‘Design’ is closed to new topics and replies.