Site logo

Archived topic

Resposive design doesn't work on table(Dispatch theme)

7 replies · Started by wontae on January 13, 2022

Viewing posts 1–8 of 8

Hi there,

can you share a link to your site?
And can you confirm you want the mobile view on larger tablet views ?

Can you confirm the size of tablet you want to adjust it for?

For example an iPad Pro 10.5" has a CSS pixel width of 834px.
Whereas a iPad Pro 12.9" has a CSS pixel width of 1024px.

It's a 10.2" iPad

Try adding this CSS:

@media (max-width: 840px) {
    .site-content {
        flex-direction: column;
    }
    .container .site-content .content-area {
        width: auto;
    }
    .is-left-sidebar.sidebar, .is-right-sidebar.sidebar {
        width: auto;
        order: initial;
    }
    .wp-show-posts-columns, .wp-show-posts-inner {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    .wp-show-posts-columns .wp-show-posts-single {
        display: block;
        width: 100%;
    }
}

In the first line: @media (max-width: 840px) { you can change the 840px to 1024px if you want to apply to the larger ipad.

The problem is solved!

Thank you very much

Glad to hear that

This archived topic is closed to new replies.