Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #386933

    Hi, I received a great snippet of custom css from your support team to enable the blog posts to be arranged in a two column grid. Currently the site looks fantastic on desktop and tablets. I tested the site layout on smaller devices like phones and the text block is cut off on the far right hand edge.

    I used Eliot’s code:
    <style type = “text/css”>
    .slide-image {
    float: left;
    margin-right: 20px;
    }
    .slide-content { margin-left: 300px; }
    </style>

    I know it has something to do with the margin-left 300px. Is there a way for me to add a responsive rule in the css to adjust the layout for phones? Sorry for being such a pain.

    #387745

    Hi esmatta!

    Please add the code as following

    <style type = “text/css”>
    @media only screen and (min-width: 480px) {
    .slide-image {
    float: left;
    margin-right: 20px;
    }
    .slide-content { margin-left: 300px; }}
    </style>

    Regards,
    Yigit

    #387761

    Hi Yigit,

    Many thanks for the above code. I tried your snippit but the blog post excerpt was moved below the picture on all screens. Is there a way to keep the 2 column style but only adjust below a certain screen width? Is this achievable?

    You’d be a lifesaver if this were possible! :)

    Best.

    #387768

    Hi!

    Ok, please use Elliott’s code and then add following code to Quick CSS in Enfold theme options under General Styling tab

    @media only screen and (max-width: 480px) {
    .slide-content { margin-left: 20px; }}

    Using media queries it is possible – http://www.smashingmagazine.com/2010/07/19/how-to-use-css3-media-queries-to-create-a-mobile-version-of-your-website/

    Cheers!
    Yigit

    #387801

    Thanks again! I just can’t get the text to ‘fall’ under the image using the general styling panel. It still resizes the page content until the excerpt disappears off the right hand edge. I’ve added the code and forced a cache reload, but no effect :( Sorry for being such a nuisance.

    #388677

    Hi!

    Add this code either to the text block or Quick CSS:

    @media only screen and (max-width: 480px) {
        .slide-content {
            margin-left: 0 !important;
        }
    
        .slide-image {
            width: 100%;
        }
    
    }

    Cheers!
    Josue

    #388762

    Thank you SO MUCH! This worked a treat! Kudos to all you guys on the Kriesi support team! You’ve made my weekend!

    #388842

    You are welcome, glad we could help :)

    Regards,
    Josue

Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.