Support » Developing with WordPress » which method is better container queries,element queries or media queries?

  • Resolved johannes999

    (@johannes999)


    Hello,
    I like to know which method is better to use :
    container queries,element queries or media queries?
    which teckniek is beter to use at this moment or there is not very much difference between this methods?
    thanks
    johan

Viewing 4 replies - 1 through 4 (of 4 total)
  • Damon Cook

    (@colorful-tones)

    Hi johannes999,
    As far as I’m aware container/element queries are not natively supported CSS properties yet, therefore I would probably steer clear. There are JavaScript and polyfill solutions out there, but the spec and discussion around them has shifted and hasn’t seemed to land anywhere solid yet.

    Here is some further reading that I came across, which might help you decide:

    Here is one popular JavaScript plugin solution, but there are others out there.

    EQCSS (Element Query CSS)

    Hope this helps!

    thanks for good advise,
    I read a little and tomorrow I am going to read more about it.
    my last question is it possible to use media query and EQCSS (element query) together?
    and wil be not better to use both togeteher to get maximum result of it?
    johannes

    Damon Cook

    (@colorful-tones)

    That I’m not sure of and would have to dig deeper myself. Good luck, and feel free to report back on what you find?

    thanks
    johannes

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘which method is better container queries,element queries or media queries?’ is closed to new replies.