Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 3 of 3

Thread: web page size

  1. #1
    Junior Member
    Join Date
    Jul 2007
    Posts
    5
    Member #
    15542
    I tried to design a webpage layout using CSS. But the problem is when i try to zoom the page (with my mouse scroller+ctrl key) the page expands vertically not proportionately.
    Like www.yahoo.com
    [Here when u zoom in the page both the width & height of the page will be increased ].
    What shall i do on the stylesheet while defining width & height of the page to get the result.
    Thanks.

  2.  

  3. #2
    Senior Member
    Join Date
    Jun 2005
    Location
    Atlanta, GA
    Posts
    4,146
    Member #
    10263
    Liked
    1 times
    To get appropriate sizing, in CSS, you need to use either em or % measurements for all sizes. Ems are relative to font size, %s are percentage points.

  4. #3
    Senior Member ravensjeff's Avatar
    Join Date
    Aug 2007
    Location
    Maryland
    Posts
    125
    Member #
    15751
    Ok...I would like to ask a follow up question.

    I'm confused about the use of %'s. How do you go about balancing the layout using percentages when images used are clearly limited to a certain pixel size?

    In this site, for example, the container size is specified to a specific pixel width...but if you scroll your mouse button in IE, the container changes sizes as well (not just the font as Firefox does). If I am understanding you correctly (and I very well may not be), the fix for this would be to specify the size of the container (and other elements) as a %. But I don't understand how this would work...what happens to the image? Obviously it can't resize infinitely with the window without getting distorted.

    Thank you bearing with my confusion.


Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 06:58 PM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com