What's the easiest or best way to determine the screen size from within a controller or view in Rails? My "divs" look great at 1280x800, but not so hot on 800x600. I want to dynamically alter the layout based on the resolution. Any hints regarding screen size or alternate ways of handling this issue would be appreciated. Thanks!
on 2006-04-19 23:24
on 2006-04-20 00:00
I would suggest not trying to find out, but instead learning how to design your CSS stylesheets to be independant of screen size. I'm not really good at layout design, but the book "Cascading Style Sheets (3rd ed)" by Hakon Wium Lie and Bert Bos was helpful to me. Maybe try here: http://www.sitepoint.com/article/top-ten-css-tricks Google may help find good tutorials. Good Luck, Sean Nathan L. wrote: > What's the easiest or best way to determine the screen size from within > a controller or view in Rails? My "divs" look great at 1280x800, but > not so hot on 800x600. I want to dynamically alter the layout based on > the resolution. Any hints regarding screen size or alternate ways of > handling this issue would be appreciated. > > Thanks!
on 2006-04-20 00:14
on 2006-04-20 00:26