Quantcast
Channel: 🎛️ Dash - Plotly Community Forum
Viewing all articles
Browse latest Browse all 6271

Media queries in Python

$
0
0

Hello!

I was wondering how to implement media queries in Python Dash. For example in my Dash app with mutliple divs, I have a div called “first_row” with a row-reverse flex-direction and, if my screen width goes under, let’s say, 500px, I want it to go column-reverse. How can I do it?

I guess it might look like that but I have absolutely no idea about the grammar in Python:
@media only screen and {“max-width” : 500} {
“id” = “first_row” ==> “flex-direction” : “column-reverse”;
}

Of course the “==>” is not Python at all but I guess you’ll understand it!

Thanks!

PS: I hope I respect all the rules of this forum but as I am new to it, I may have forgotten to do something, sorry if it is the case! :wink:

3 posts - 2 participants

Read full topic


Viewing all articles
Browse latest Browse all 6271

Trending Articles