Site logo

Archived topic

Website looking bad on Tablet

11 replies · Started by Marius on August 30, 2021

Viewing posts 1–12 of 12

Hello,

my site is looking bad on tablet. The sidebar is on the right side, but so narrow, that only 2 - 3 words are in one line.
Why is the sidebar not on the bottom, like on mobile view on phone?

Hi there,

try this CSS:

@media (max-width: 1024px) {
    .site-content {
        flex-direction: column;
    }
    #primary,
    #right-sidebar {
        width: 100%;
       
    }
    #main {
        margin-right: 0;
    }
}

Hi David,

Should I add this css, or do I have to replace some css with it?
And what does it do?

Hi Sonja,

Try add this CSS first to see if it works.

Let us know :)

Hello,

what stands the 1024 for? Is this the size of the window, when the sidenbar starts to switch to the bottom of the site?

And is it possible to change the max-width: 1024px to another number? Maybe a bit less?

what stands the 1024 for? Is this the size of the window, when the sidenbar starts to switch to the bottom of the site?

Yes thats correct.

And is it possible to change the max-width: 1024px to another number? Maybe a bit less?

And yes, you could reduce it to another size eg.

@media (max-width: 834px) {
    .site-content {
        flex-direction: column;
    }
    #primary,
    #right-sidebar {
        width: 100%;
       
    }
    #main {
        margin-right: 0;
    }
}

Hi David,

okay, thanks. Is 1024 the recommended value? Or was that just a random suggestion?

768px *1024px is the iPad screen width and length.

So 1024px is the typical iPad width on horizontal direction.

With this setting on my Samsung Tablet (10.4 Zoll) I see the Sidebar in Landscape Modus, but not in Portrait Modus.
I think that is fine.

What I am only concerned about is the fact that this setting is not part of the basic settings of this site (Marketer Site). So I think maybe for some reason it would be wrong to set this setting.

It's perfectly fine to use the 1024px :)

Hi David,
thanks, then I will keep it like this.

:)

This archived topic is closed to new replies.