Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    Regular Coder
    Join Date
    Jul 2007
    Location
    USA
    Posts
    146
    Thanks
    5
    Thanked 3 Times in 2 Posts

    Percents vs. Set Pixels

    Ok so this may seem rather beginner-ish but when setting the size of photoshoped sliced images on a web page I want to use percents not set pixels right? This will avoid a scroll bar on different sized pages provided it adds up to 100% right?
    Quote Originally Posted by rmedek View Post
    Doctordew, as soon as they come out with the opposite of an infraction, I am going to give you a million of them. You are my new favorite person on the forum.

  • #2
    Banned
    Join Date
    Feb 2008
    Location
    Winnipeg, Canada
    Posts
    396
    Thanks
    0
    Thanked 29 Times in 29 Posts
    Pixels tend to be used for things that need to be a set size (E.G. a banner) while percents tend to be used for things like content divs where they need to be more dynamic.

  • #3
    Regular Coder Actinia's Avatar
    Join Date
    Feb 2007
    Location
    Essex, UK
    Posts
    250
    Thanks
    1
    Thanked 23 Times in 22 Posts
    What are you assigning percentages/pixels to? Is it the image itself, or the container?

    Images themselves should be assigned their natural pixel measures otherwise they will scale and possibly distort the image. You can place a pixel-specified image into a percentage-specified container as a background with appropriate background-positioning or overflow to control its appearance.

    John

  • #4
    Regular Coder
    Join Date
    Jul 2007
    Location
    USA
    Posts
    146
    Thanks
    5
    Thanked 3 Times in 2 Posts
    My layout, like you cut up photoshop images and piece them together to make the layout. I guess I may not even be doing this right. Like you make different pieces of the layout in photoshop and save parts of it and then insert those images in. I guess my question is answered though.
    Quote Originally Posted by rmedek View Post
    Doctordew, as soon as they come out with the opposite of an infraction, I am going to give you a million of them. You are my new favorite person on the forum.


  •  

    Posting Permissions

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