Stack table elements on small screens

hello, I would like to stack the label and the variation elements for variation products. I can see they are in columns but I would like to change them to rows at certain widths. Is there a way for me to tell the table elements to stack at a certain width ?
http://x.aiadstaging.com.au/projects/rodburn.com.au

Hi there,

You can do that by adding some custom CSS in X > Theme Options > CSS:

@media (max-width: 480px) {
    .variations td {
        width: 100%;
       display: block;
    }
}

Here are some related links for further reading:

Hope this helps.

1 Like

Thank you soo much

You’re welcome!

how would I do it when the table got to a width and not a screen

Hi @wicara,

That’s not possible as @media blocks are for the device screen only.

Thanks!

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.