Responsive Page Layout

This support request was posted in General Support by mizumarketing

Request ID #1064 In Progress
  • Hi Juan,

    I would like to setup responsive columns in my page. I saw what you said about adding this CSS code for the columns:

    .col-1{
    width: 50%;
    float: left;
    overflow: hidden;
    }

    .col-2 {
    width: 46%;
    float: right;
    overflow: hidden;
    }

    I would like the second column to fall underneath the first one when it is on a mobile device instead of just making them smaller. Is this an option?

    Thanks!

    Juanfra Aldasoro

    Hello There,

    Yes, you can add some code to make that columns full width on mobile devices. For example:

    /* iPhone Landscape */
    @media screen and (max-width: 480px) {
    
    .col-1, .col-2 {
    width: 100%;
    float: none;
    display: block;
    }
    
    }
    

    With that code, all devices that are smaller than 480px width (i.e.: iPhone Landscape) will ahve those two columns one on top of the other.

    Best,
    Juan.

    Awesome it worked perfectly. Thanks!

    I am having issues with the images displaying correctly. Can I e-mail you a link to check it out?

    Thanks!

    Juanfra Aldasoro

    Sure, drop us a line 🙂

    support@nicethemes.com

    Best,
    Juan.

Viewing 5 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.

Login to your Account

Welcome back! Please log in to your account by filling the fields below:

Forgot?

Not a member? Create a free account.

Create a Free Account

You're 27 seconds away from some awesome WordPress free stuff, benefits and more. Create a free account and have access to our free products, benefits and more!

Already have an account? Log in
Secure Server