Tagged: Icon alignment
-
AuthorPosts
-
December 19, 2014 at 7:42 pm #370726
Hello!
I am having issues with icon alignment on mobile. I really like how the icons appear horizontally on browsers, but they align completely vertical and centered on mobile. I’d like to make it so they appear in rows.
In my example images, I have 5 icons in a row at 40px on mobile. I am also using the following CSS to make them smaller on mobile:
@media only screen and (max-width: 767px) { .av-icon-char { font-size: 20px !important; padding: 10px !important; }}
-I’d like the icons to scale with the dimension of the phone and stay on the same line.
-If you think that it may cause issues, I’d like to have the icons get pushed down to a second horizontal row and center them base don how many are there.
-Lastly, do you have any better recommendations for handling the scale of icons from larger to smaller screens? My solution works, but isn’t exactly ideal as it’s done in pixels and doesn’t adjust per tablet -> mobileI believe the first solution would be the most ideal. Thank you for all your help!
December 19, 2014 at 8:03 pm #370728This reply has been marked as private.December 20, 2014 at 5:52 pm #370995Hey!
Add this to your custom CSS.
@media only screen and (max-width: 767px) { #plastic-surgery-social-media .av_one_fifth { width: 20% !important; } }
Best regards,
ElliottDecember 29, 2014 at 11:29 pm #372909Thank you for this Elliot!
I do have a question regarding this approach. I see you added: #plastic-surgery-social-media to the CSS. Doesn’t that mean it will only affect that one area? What if I have icons in a similar fashion elsewhere on the site? Won’t the same issue occur?
December 30, 2014 at 10:38 am #372992Hey!
You should place those icons into Color Sections with custom ID as well in order to avoid applying the changes on all 1/5 column elements.
Best regards,
YigitJanuary 5, 2015 at 8:14 pm #375291So, would it be better to switch my original CSS to the below? I want this to work for all icons, as a change like that is the most desirable:
@media only screen and (max-width: 767px) { .av-icon-char { width: 20% !important; }}
Or is it best to keep both individual CSS codes in place?
January 5, 2015 at 8:17 pm #375293I just tested your code with mine and it provided the same result. You can see the icons are overly large and stacked vertically on mobile instead of horizontally:
I understand what you recommended better now as we are trying to make the width 20% on all mobile columns with the #plastic-surgery-social-media class. For some reason, when adding what you sent, it is not working properly.
January 5, 2015 at 11:06 pm #375387Hey!
I don’t see the code I told you to add in your source code. Where did you add it?
Deactivate your caching plugins and clear your browser cache after adding it in Dashboard > Enfold > General Settings > Quick CSS.
If it’s still not working then paste the full contents of your Quick CSS field here so we can check for typos.
Regards,
ElliottJanuary 13, 2015 at 7:49 pm #379075I did this but the CSS is still not working as intended.
January 15, 2015 at 10:26 pm #380494Hi!
Send us a WordPress login.
Best regards,
ElliottJanuary 20, 2015 at 3:53 pm #382512Feel free to close this ticket. I have worked on CSS issues regarding this theme for over a year and still have 50% of my issues unresolved. I will not be using this theme again ever. It’s not responsive, and the most basic user experience issues go unresolved or half fixed.
Thank you for your help.
January 20, 2015 at 4:12 pm #382523Hey!
That is not normal. We and thousands of Enfold users are not having responsiveness issues. If you do not mind providing login credentials, we would gladly look into the issue.
Regards,
YigitFebruary 24, 2015 at 9:02 am #401217I had the same problem. 3 icons horizontal on a pc appeared vertically on a mobile. I do not understand why they are displayed vertically on a mobile, thats not responsive i guess. But i solved it with Yigit’s solution.
@media only screen and (max-width: 767px) {
.av_one_third {
width: 32% !important;
}
Thanks again!February 24, 2015 at 5:44 pm #401554 -
AuthorPosts
- You must be logged in to reply to this topic.