• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
Appfinite

Appfinite

Premium WordPress Themes for The Genesis Framework

  • Themes
  • Blog
  • Tutorials and Resources
  • Forums
  • Contact Us

Icon Alignment Issue

Home › Community Forums › Aspire Theme Support › Icon Alignment Issue

Tagged: css, image alignment.

  • This topic has 7 replies, 2 voices, and was last updated 6 years, 8 months ago by Wes.
Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • May 23, 2016 at 3:30 pm #18114
    qvyang
    Customer

    I’m having trouble with my Front Page 6 section text widget (“Here’s why you’ll love our Program”) where I want to align all the icons vertically but for some reason the icons are shifting to the right one after another. I know this is a CSS issue. How do I make them align straight?

    The problem can be seen on my website: https://www.chinesetalkeze.com/

    May 23, 2016 at 10:49 pm #18117
    Wes
    Moderator

    I don’t think it’s your CSS, it looks like you may have enabled the Checkbox in your widgets that says – "Automatically add paragraphs"….if so, try and disable that checkbox and see if it shows up properly. That checkbox/option adds a <p></p> tag to the code which will throw the code off.

    Let me know if that’s it.

    May 25, 2016 at 12:24 am #18130
    qvyang
    Customer

    I don’t have that checked. Here’s what it currently look like:

    <h4>Here's why you'll love our Program</h4>
    
    <div class="left-content"><i class="fa fa-check-square-o" style="font-size: 60px;"></i></div>
    
    <div class="right-content"><h3><b>S</b>uper Practical</h3>
    <p>Learn how native Chinese speaks in their daily conversations.</p></div>
    
    <div class="left-content"><i class="fa fa-check-square-o" style="font-size: 60px;"></i></div>
    
    <div class="right-content"><h3><b>I</b>nstant Fluency</h3>
    <p>Achieve fluency instantly without the need to learn complicated grammar rules.</p></div>
    
    <div class="left-content"><i class="fa fa-check-square-o" style="font-size: 60px;"></i></div>
    
    <div class="right-content"><h3><b>M</b>inimalistic Approach</h3>
    <p>One sentence at a time, our course is designed to prevent procrastination and burnout.</p></div>
    
    <div class="left-content"><i class="fa fa-check-square-o" style="font-size: 60px;"></i></div>
    
    <div class="right-content"><h3><b>P</b>erfect Pronunciation</h3>
    <p>Learn perfect Chinese pronunciation from a Beijing-born Chinese speaker.</p></div>
    
    <div class="left-content"><i class="fa fa-check-square-o" style="font-size: 60px;"></i></div>
    
    <div class="right-content"><h3><b>L</b>aser Focus on Conversation</h3>
    <p>Designed to achieve fluency in the shortest amount of time ever possible by focusing only on conversational Chinese.</p></div>
    
    <div class="left-content"><i class="fa fa-check-square-o" style="font-size: 60px;"></i></div>
    
    <div class="right-content"><h3><b>E</b>ngaging Video Lessons</h3>
    <p>Learn Chinese with video lessons makes it simple and fun.</p></div>
    
    May 25, 2016 at 10:23 pm #18143
    Wes
    Moderator

    You’re missing the one-half div containers. It should look like this –

    May 25, 2016 at 11:58 pm #18146
    qvyang
    Customer

    I removed one-half because I want it to be displayed in one columns as you can see that the 6 features I’ve listed are

    Super practical
    Instant fluency
    Minimalistic approach
    Perfect pronunciation
    Laser focus on conversation
    Engaging video lessons

    The first letters put together to become SIMPLE.

    May 26, 2016 at 10:12 pm #18155
    Wes
    Moderator

    Oh I see, so you want it to look like this? – http://i.imgur.com/i1OmKjz.png

    If so, then you’d need to add a div that wraps around both the left and right content divs so they are cleared from the other divs.

    To duplicate the example above, I modified your code by adding the class .clear. Then I added that class to the CSS. Here is the html (first step) –

    <h4>Here's why you'll love our Program</h4>
    
    <div class="clear">
    <div class="left-content"><i class="fa fa-check-square-o" style="font-size: 60px;"></i></div>
    
    <div class="right-content"><h3><b>S</b>uper Practical</h3>
    <p>Learn how native Chinese speaks in their daily conversations.</p></div>
    </div>
    
    <div class="clear">
    <div class="left-content"><i class="fa fa-check-square-o" style="font-size: 60px;"></i></div>
    
    <div class="right-content"><h3><b>I</b>nstant Fluency</h3>
    <p>Achieve fluency instantly without the need to learn complicated grammar rules.</p></div>
    </div>
    
    <div class="clear">
    <div class="left-content"><i class="fa fa-check-square-o" style="font-size: 60px;"></i></div>
    
    <div class="right-content"><h3><b>M</b>inimalistic Approach</h3>
    <p>One sentence at a time, our course is designed to prevent procrastination and burnout.</p></div>
    </div>
    
    <div class="clear">
    <div class="left-content"><i class="fa fa-check-square-o" style="font-size: 60px;"></i></div>
    
    <div class="right-content"><h3><b>P</b>erfect Pronunciation</h3>
    <p>Learn perfect Chinese pronunciation from a Beijing-born Chinese speaker.</p></div>
    </div>
    
    <div class="clear">
    <div class="left-content"><i class="fa fa-check-square-o" style="font-size: 60px;"></i></div>
    
    <div class="right-content"><h3><b>L</b>aser Focus on Conversation</h3>
    <p>Designed to achieve fluency in the shortest amount of time ever possible by focusing only on conversational Chinese.</p></div>
    </div>
    
    <div class="clear">
    <div class="left-content"><i class="fa fa-check-square-o" style="font-size: 60px;"></i></div>
    
    <div class="right-content"><h3><b>E</b>ngaging Video Lessons</h3>
    <p>Learn Chinese with video lessons makes it simple and fun.</p></div>
    </div>

    And next I added this to the CSS –

    .clear {
        clear: both;
    }

    I also modified the icon’s CSS by removing the padding-top since it would be pushed down too far below the text on the right. You can edit this in your CSS to get the same result –

    .left-content .fa, 
    .right-content .fa {
        padding: 0px 0 40px;
    }

    Let me know if that helps.

    May 26, 2016 at 11:50 pm #18166
    qvyang
    Customer

    Thank you so much! The list is now properly aligned.

    May 27, 2016 at 9:07 pm #18175
    Wes
    Moderator

    You’re Welcome!

  • Author
    Posts
Viewing 8 posts - 1 through 8 (of 8 total)
  • The topic ‘Icon Alignment Issue’ is closed to new replies.

Primary Sidebar

Search Forums

Affiliate Program

Looking to earn some money? Join our Affiliate program and earn 35% of every sale you refer. Top referrers earn 40-50%.

Join Now →

The Genesis Framework

All of our themes are designed for the Genesis Framework. You will need to purchase Genesis in order to use any of our themes.

Purchase Genesis

Hire a Web Developer

Need help setting up or customizing your website?

Contact Us →

Search Full Site

  • Buy Genesis!
  • Shopping Cart
  • Themes
  • My Account
  • Support Forums
  • Tutorials and Resources
  • Privacy Policy
  • Contact Us
  • Follow Us on Twitter

Copyright © 2023 · Appfinite · Built With The Genesis Framework