Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

celticpride678

Guest
Original poster
Feb 15, 2009
5,486
2
Boston, MA
I just checked my website on a higher-resolution monitor and it was very small compared to lower-resolution displays.

I'm trying to develop a button that, when clicked will increase the page width to make it easier for the user to read.

Any ideas? Thanks.
 
The short answer,
PHP:
element.style.width = newWidth +'px';
Where element is a DOM tag element, maybe your body tag or some wrapper.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.