Re: Validating media queries in Java

On Sat, 17 Nov 2007 16:27:08 +0100, Henri Sivonen <hsivonen@iki.fi> wrote:
> If you have a design that puts a column of text (width in ems) and a  
> bitmap (width in px) side by side on wide view ports, you might want to  
> query whether the view port is at least x ems plus y pixels wide (and if  
> not, load a different design instead).

This use case only works if the design uses the 'rem' unit and not the  
'em' unit. Though I suppose you could make a case for combining relative  
('px' for instance) and absolute ('mm' for instance) using calc() in a  
min-width qeury.


-- 
Anne van Kesteren
<http://annevankesteren.nl/>
<http://www.opera.com/>

Received on Saturday, 17 November 2007 22:54:03 UTC