Site logo

Archived topic

2 columns for screen size from 600 to 800px

8 replies · Started by Anil on April 8, 2019

Viewing posts 1–9 of 9

Hi

I installed tasty theme

on screen size 768 it shows 2 columns of blog and sidebar below... PERFECT.

I want to maintain this view from screen size 600 to 800px.

Please advise.....

Hi there,

try this CSS:

@media (max-width: 800px) and (min-width: 600px) {
    .post.generate-columns {
        float: left;
        width: 50% !important;
    }
    .content-area {
        width: 100% !important;
    }
    .sidebar {
        float: none !important;
        width: 100% !important;
        left: 0;
        right: 0; 
    }
}

Thanks, it is awesome...

Bye

Glad to be of help.

Hi

just updated the code

@media (max-width: 1000px) and (min-width: 600px) {
    .post.generate-columns {
        float: left;
        width: 50% !important;
    }
    .content-area {
        width: 100% !important;
    }
    .right-sidebar.separate-containers .site-main {
    	margin: 20px 0 20px 0;
	}
    .sidebar .widget {
    	background-color: #efefef;
	}
    aside .widget-search {
    	background-color: #ffffff;
    }
    .sidebar {
        float: none !important;
        width: 100% !important;
    }
}

please guide to make sidebar aside WHITE

resolved

No problem :)

This archived topic is closed to new replies.