SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Member
    Join Date
    Jun 2008
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Resizing Page In Browser

    Hi Everybody.

    I'm a new forum member. I'm also a new JavaScript developer. In a 100% liquid layout, how can I write a script to have the page automatically resize in smaller viewports? Is it a combination of Javascript and CSS or one or the other?

    Thanks!!!

  2. #2
    We're from teh basements.
    Join Date
    Apr 2007
    Posts
    1,205
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Use percentages instead of pixel widths for the widths of your elements in CSS.

  3. #3
    SitePoint Member
    Join Date
    Jun 2008
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks a lot!!!

    So (if you will bear with me), if all of my elements, for instance, were sized at 100%, would that be relative to the size of the port in which they are being viewed or the size of other elements or both...?

    Thanks again!!!


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •