What is the best way in code, for a module to determine the width of the pane in which it's being housed? I'm working on some code similar to responsive css design where the output is generated differently based on media queries so that it is formatted for the best UI experience. I'd like to implement that concept in DotNetNuke modules, so that the output of a module can be specified/adjusted automatically depending on whether it's in a full-width pane, or a side-bar style pane.
So, what's the easiest way for me to determine at runtime the width of my module?