Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS Will there ever be “media queries” for individual elements Re: Will there ever be “media queries” for individual elements

#108255

Yeah, but you’re not always in control of those things. Either because there’s user generated content of unknown size or because you’re working with a fluid grid.

Let’s say for example that I have a fixed width sidebar and a fluid content area which fills the rest of the screen. I don’t know how big the content area is, all I know is that it is the width of the viewport minus 200px or so. Right now I have to do the math and style the layout of the content area around the viewport size, but it would be much easier for me to style it dependent on the size of the content area itself.

I’m prepared to admit, I may be the only one that thinks this…..