css-element-queries
css-element-queries copied to clipboard
More example/best practise for switching elements and visibility of element
Thanks for the nice examples of usage of this awesome tool on https://github.com/marcj/css-element-queries and https://marcj.github.io/css-element-queries/
Would be perfect to see two more examples/ documentation of best practise:
-
change/switch of content when elements reaching a specific width example for usecase: caption/legend of an image: short one for width<600px, long one for width >600px
-
show element only starting at a specific width example for usecase: caption/legend of an image should be only visible for width >300px
Would you like to provide a pull request with that?
hmm , sorry.... was looking for some hints for the questions: is this already working? How to do it best?
Sure that works, but depends on the actual layout you wanna build. So can you provide an example with example implementation?