How to make a button that increases page width when clicked?

Discussion in 'Web Design and Development' started by celticpride678, Jul 30, 2010.

  1. celticpride678

    Joined:
    Feb 15, 2009
    Location:
    Boston, MA
    #1
    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.
     
  2. angelwatt Moderator emeritus

    angelwatt

    Joined:
    Aug 16, 2005
    Location:
    USA
    #2
    The short answer,
    PHP:
    element.style.width newWidth +'px';
    Where element is a DOM tag element, maybe your body tag or some wrapper.
     

Share This Page