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

Thread: Measurements

  1. #1
    Regular Coder
    Join Date
    Oct 2008
    Posts
    255
    Thanks
    113
    Thanked 0 Times in 0 Posts

    Measurements

    To specify 100 in pixels or percentage, you would use 100px or 100%, respectively. What type of measurement are you using if you just state 100 as the value? I've noticed that a lot of people just use numbers and nothing more when sizing their HTML, but I've been unable to find what type of measurement that is, whereas pixels, percentages, and points end in px, %, and pt, respectively.

  • #2
    Regular Coder
    Join Date
    Dec 2010
    Location
    California
    Posts
    201
    Thanks
    30
    Thanked 8 Times in 8 Posts
    I think it defaults to pixels!

  • #3
    Senior Coder
    Join Date
    Feb 2009
    Location
    Ilkley, West Yorkshire, UK
    Posts
    2,956
    Thanks
    9
    Thanked 727 Times in 721 Posts
    It varies from browser to browser, which is why you should always include a unit.

  • #4
    The Apostate Apostropartheid's Avatar
    Join Date
    Oct 2007
    Posts
    3,215
    Thanks
    16
    Thanked 265 Times in 263 Posts
    Quote Originally Posted by Joseph Witchard View Post
    To specify 100 in pixels or percentage, you would use 100px or 100%, respectively. What type of measurement are you using if you just state 100 as the value? I've noticed that a lot of people just use numbers and nothing more when sizing their HTML, but I've been unable to find what type of measurement that is, whereas pixels, percentages, and points end in px, %, and pt, respectively.
    It is meaningless unless you are referring to CSS properties which take a decimal (such as opacity) or a multiplier (like line-height).


  •  

    Posting Permissions

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