rhishi20 Posted November 20, 2013 Share Posted November 20, 2013 what is mean by css pixel ? and how it is different from screen's pixel ? Link to comment Share on other sites More sharing options...
davej Posted November 20, 2013 Share Posted November 20, 2013 (edited) I think a pixel is a pixel, but maybe that isn't entirely true anymore in certain smartphones. With a smartphone I think you want to make use of the meta viewport... <meta name="viewport" content="width=device-width"/> See... http://www.quirksmode.org/blog/archives/2010/04/a_pixel_is_not.html Edited November 20, 2013 by davej Link to comment Share on other sites More sharing options...
Ingolme Posted November 20, 2013 Share Posted November 20, 2013 A CSS pixel refers to a screen pixel. There's no difference. Link to comment Share on other sites More sharing options...
dsonesuk Posted November 21, 2013 Share Posted November 21, 2013 Actually i think you will find with mobile devices especially pixels can fit in css pixel 4 times (2 x 2), its how a 960px width css pixel website fits into a 480 width screen. Link to comment Share on other sites More sharing options...
thescientist Posted November 21, 2013 Share Posted November 21, 2013 would that be density? Like for retina display? Link to comment Share on other sites More sharing options...
dsonesuk Posted November 22, 2013 Share Posted November 22, 2013 Yes! Apple used term 'retina' for double density, when you see media specific css for devices you usually see reference to screen pixel ratio to css pixel. Link to comment Share on other sites More sharing options...
rhishi20 Posted November 22, 2013 Author Share Posted November 22, 2013 To: dsonesuk that means as a developer when i crosses 960px width, while developing website for 480 width screen, it will not fit perfectly on that mobile device. right? Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now