Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #1495387

    Hi, How would i make a framed box around the icon on left side icon element. I would like the entire element to have a background color the like the icon at the top style. I would like this only on specific instances of the elements so I would need to add a css class i believe.

    #1495397

    Hey dreyerjm,

    Thank you for the inquiry.

    You can add this css code to apply a background, border and padding to the icon box. Simply replace the selector “iconbox” with your own custom css class name.

    #top .iconbox {
        background: white;
        padding: 20px;
        border: 1px solid gray;
    }

    qKjIUqN.md.png

    Best regards,
    Ismael

    #1495442

    Thanks is there a way to make the backround not stretch all the way to the right. So the background really over covers the area with the text/icon?

    #1495463

    Hi,

    You can try setting the width of the iconbox to 90% or lower. Let us know the result.

    #top .iconbox {
        background: white;
        padding: 20px;
        border: 1px solid gray;
        width: 90%;
    }
    

    Best regards,
    Ismael

    #1495496

    Thank you!

    #1495507

    Hi,

    No problem! Let us know if you have more questions. Have a nice day.

    Best regards,
    Ismael

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘Framed Hi, Box around icon box with icon on left side’ is closed to new replies.