1. PROMO Upgrade to Pro Membership @ $99 / Lifetime & access all our 16+ premium Divi extensions: Divi Block, Carousel Toolkit, etc.LEARN MORE
Dismiss Notice
NEW Divi.Help Pro Carousel AI Toolkit - Magically turn your Divi design into carousel, simply by using our online toolkit. No plugins needed. Now it works with Divi 5 as well!Try our carousel AI toolkit
BEST Divi Block - A revolutionary drag & drop tool to easily mix & match 960+ premade blocks (Light & Dark) to kick start your Divi site design. Special module designs are included as well. Also newly added AI generator & color. Now it works with Divi 5 as well!
Learn More About Divi BlockFree Version ~ 340+ Free Blocks

Solved Sizing SVG icons properly

Discussion in 'Free Divi Community Forum' started by Scott Douglas, Mar 30, 2020.

  1. Scott Douglas

    Scott Douglas Member

    Hi, I was wondering if you could help me out with another part of the previous page I had asked about padding.

    I have .svg icons designed by the same designer that did the proof in the corner of the box of each option. But I've noticed that when looking at them in different responsive states, sometimes they shrink to almost nothing (between 600px and 480px), and then other times like on the 768 ipad inspector width the chocolate icon becomes too big for it's box. I'm wondering if there's a better way to write the html or css.

    http://www2.pcdc.net/~vscr/testing/find-my-coffee-taste-profile-aeropress/

    And a similar thing happens with the icons on this page (the icons outgrow their space below 479, and shrink prior to that):

    http://www2.pcdc.net/~vscr/testing/find-my-coffee-brewmethod/

    I've used similar html (code module) and css for both, as they're very similar.

    This is the html I used for the whole top box portion of the design (the title, icon, borders):



    <div class="top-taste-box">
    <div class="top-taste-row">
    <div class="top-taste-one">
    <h3 class="orange-text" style="letter-spacing: 1px; font-size: 1.5rem;">Fruity</h3>
    </div>
    <div class="top-taste-two">
    <img class="alignnone size-full wp-image-780 fmc-brew-img" role="img" src="/wp-content/uploads/2020/03/fruity.svg" alt="Fruity" width="25px" height="auto"/>
    </div>
    </div>
    </div>

    Any help would be huge!
     
    1. PRO MEMBER PERKS Divi Block Pro - Premade content toggle design for your Divi site without using any plugins:View Demo
  2. Divi.Help

    Divi.Help Administrator
    Staff Member

    Try the below CSS in Divi > Theme Options > Custom CSS:
    Code:
    Log In or Sign Up to view this code.
     
  3. Scott Douglas

    Scott Douglas Member

    That worked, it ended up joining the boxes together, but that had to do with just adding padding to the mod to separate them. Works really nicely, thank you!
     
    1. PRO MEMBER PERKS Divi.Help Pro Layout Packs - Agency Divi layout pack featuring modern overlay archive blog layout with hover effects:View Demo