SitePoint Sponsor

User Tag List

Results 1 to 7 of 7
  1. #1
    SitePoint Member
    Join Date
    Aug 2010
    Posts
    21
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Is there a size difference between css pixels and html width pixels?

    Is there a size difference between css pixels and html width pixels? The question I ask is because the sidebar in www.giantmango.com uses the embed code from flickr and vimeo`s width are 220 and the search input bar in css is set to 220px, but when viewed through a browser they have different lengths?

  2. #2
    SitePoint Member
    Join Date
    Aug 2010
    Posts
    21
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    thank you

  3. #3
    SitePoint Member
    Join Date
    Aug 2010
    Posts
    21
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thank you. I think I got it.

  4. #4
    om nom nom nom Stomme poes's Avatar
    Join Date
    Aug 2007
    Location
    Netherlands
    Posts
    10,233
    Mentioned
    47 Post(s)
    Tagged
    1 Thread(s)
    Pixels are not pixels. Which is why a box is "300px" wide even if you zoom.

    http://www.quirksmode.org/blog/archi...el_is_not.html

  5. #5
    Non-Member
    Join Date
    Jun 2010
    Location
    4727′35″N 2618′0″E
    Posts
    1,789
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    pixels are pixels. zooming has nothing to do with css. with your css anyway. and i know of css zoom declaration

    also, remember the os accessibility zoom features? is the same. or the font size in a word doc? it will always be 12px or 16px even if the zoom is 50% or 450%.

    web dev hasn't invented anything new yet. it may only appear new due to the hype. but all new is already old. just that is badly implemented

  6. #6
    om nom nom nom Stomme poes's Avatar
    Join Date
    Aug 2007
    Location
    Netherlands
    Posts
    10,233
    Mentioned
    47 Post(s)
    Tagged
    1 Thread(s)
    Screen pixels are physical things. They don't change size. They are manufactured.

    The pixels you talk about as CSS units are NOT those pixels. They can't be. Every screen is different.

  7. #7
    Non-Member
    Join Date
    Jun 2010
    Location
    4727′35″N 2618′0″E
    Posts
    1,789
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    that's the way it has been since the gui os. i don't see how this is related to css only. it's been that way before html&css. css didn't rewrite any, didn't give birth to any new concepts here. no need to feel like css is doing something special about it. my point


Tags for this Thread

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
  •