Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #913075
    zendog22
    Participant

    Hi guys, please can you tell me how I add a margin to an image wrapped in text? I wrapped the text by searcihng the forum and adding float: left but can’t see how to wrap margin. Thank you
    http://kentishandco.staging.wpengine.com/services/

    #913431
    John Ezra
    Member

    Hi there,

    Thanks for writing in! You can add this under Custom > CSS in the Customizer or in your child theme’s style.css file.

    div#training img.x-img.x-img-none {
        margin-right: 30px
    }

    Hope this helps – thanks!

    #913999
    zendog22
    Participant

    Hi, thanks for getting abck to me. Unfortuantely that didn’t do anything. Should it have a . at the start by any chance?
    Have tried that too but it doenst work actually.

    div#training img.x-img.x-img-none {
    margin-right: 30px
    }

    You mention the child theme or customizer. I have added quite a lot of code to my customizer. Will this still be there whenever the theme gets updated? Just want to double check.

    #914025
    zendog22
    Participant

    I have also tried adding a semi colon to the end but that didn’t work either.

    div#training img.x-img.x-img-none {
    margin-right: 30px;
    }

    #914314
    Joao
    Moderator

    Hi There

    Please use this instead

    div#training img.x-img {
        margin-right: 30px;
    }

    Hope that helps,

    Joao

  • <script> jQuery(function($){ $("#no-reply-913075 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>