You should be able to use CSS Media queries to achieve this.
But if you need to know the orientation to serve a different template according to the screen size and orientation then you should probably make a XSLT extension that can return the answer so you can decide which HTML to serve for the device if that is what you need to do?
detect device orientation in xslte
hi,
do any of you have an ideahow to detect a mobile device orientation: portrait or landscape in xslt?
i need a way to decide which img tag to show based on te above condition.i tried using js in the xslt file with no luck.
peter
Hi Peter
You should be able to use CSS Media queries to achieve this.
But if you need to know the orientation to serve a different template according to the screen size and orientation then you should probably make a XSLT extension that can return the answer so you can decide which HTML to serve for the device if that is what you need to do?
/Jan
is working on a reply...