close
The Wayback Machine - https://web.archive.org/web/20220601140651/https://github.com/elementor/elementor/issues/1624
Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Icon List - Alignment - Inline? #1624

Closed
pingram3541 opened this issue Apr 18, 2017 · 8 comments
Closed

Icon List - Alignment - Inline? #1624

pingram3541 opened this issue Apr 18, 2017 · 8 comments

Comments

@pingram3541
Copy link
Contributor

@pingram3541 pingram3541 commented Apr 18, 2017

I thought this was requested before but had a hard time finding it. Is it possible to make an icon list display inline without custom css? Thx

@pingram3541
Copy link
Contributor Author

@pingram3541 pingram3541 commented Apr 18, 2017

After doing a little playing around this is a known quirk of using flex model with inline elements. I found that if you add an option to toggle the elements inline, just also toggle the ul to have following properties:

here is the css output:

Inline - justify right

selector .elementor-icon-list-items {
    display: flex;
    justify-content: flex-end;
}

Inline - justify left

selector .elementor-icon-list-items {
    display: flex;
    justify-content: flex-start;
}

Inline - justify center

selector .elementor-icon-list-items {
    display: flex;
    justify-content: center;
}

And of course the logic should be smart enough to set inline for only specific modes and when not inline for a particular device width, we remove the flex props from the ul and everything works as it does now.

This would give the utmost design flexibility for icon lists both vertical and horizontal. Thanks.

@pingram3541
Copy link
Contributor Author

@pingram3541 pingram3541 commented Apr 23, 2017

Yes, please see my response on the other thread, they are similar yet still individual. Thx - #1601 (comment)

@muzaffarsiddiqui
Copy link

@muzaffarsiddiqui muzaffarsiddiqui commented Aug 5, 2017

Hi,
Very nice tip. It solves my problem too except a little problem. I need to have space in between icon list items. Not the first one and last one.

What will be the css code?

I will appreciate your help.
Thanks
Muzaffar

@sigersmit
Copy link

@sigersmit sigersmit commented Nov 30, 2017

@muzaffarsiddiqui I used:

.elementor-icon-list-item:not(:first-child) {
    padding-left: 10px;
}

This would be a great enhancement!

@maxwellhibbert
Copy link

@maxwellhibbert maxwellhibbert commented Jan 7, 2018

Need this.

@vongoh
Copy link

@vongoh vongoh commented Feb 16, 2018

+1. Just realized Elementor Icon List element doesn't have an inline option

@pingram3541
Copy link
Contributor Author

@pingram3541 pingram3541 commented Feb 16, 2018

It's the simple things that take the longest to curate

@arielk arielk added this to the 2.0.0 milestone Feb 18, 2018
@arielk
Copy link
Contributor

@arielk arielk commented Feb 21, 2018

Done for the next version #3522

@arielk arielk closed this as completed Feb 21, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants