Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1356803
    newskywebsites
    Participant

    Hi There, I have been wondering about this for ages and hoping you can help me with a style or CSS to fix how text wraps around photos on smaller screens. Please see this quick video demo of my issue: http://screencast-o-matic.com/watch/cbneo1QWHz

    Site URL: http://meyer-mab.dev-website.us/aluminum-blanks/aluminum-circles

    I’m using latest version of WP, X w/ Child, Renew Stack and I’m not an advanced coder 🙂

    Thanks!
    Dawn

    #1357036
    Joao
    Moderator

    Hi Dawn,

    You could try this following CSS on Appereance > Customizer > Custom > CSS

    @media(max-width: 500px) {
    img.alignright,img.alignleft {
       width: 100%;
        margin: 0;
    } }

    Hope it helps

    Joao

    #1357050
    newskywebsites
    Participant

    That works great for that one photo in the video I sent, but it messes up the other icons. Can I apply a class to this so I can use it as needed? I don’t know how to do that. Can you assist? If that work work, can you tell me the code to make a class for this and apply it to the specific image?

    Thanks!!
    Dawn

    #1357565
    Friech
    Moderator

    Hi Dawn,

    Yeah sure, please add a class to your image (e.g my-image-class).

    And then update the given css code to this:

    @media (max-width: 500px) {
    .my-image-class {
    	width: 100%;
        	margin: 0;
    	} 
    }

    Let us know how it goes.

    Cheers!

    #1359751
    newskywebsites
    Participant

    Works great! Thanks!

    #1359755
    Joao
    Moderator

    Glad to hear it,

    Cheers

    #1359765
    Joao
    Moderator

    Glad to hear it,

    Cheers

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