Are you a Google Analytics enthusiast?
Share and download Custom Google Analytics Reports, dashboards and advanced segments--for FREE!

www.CustomReportSharing.com
From the folks who brought you High Rankings!
More SEO Content
Design For Droid
#1
Posted 21 June 2012 - 03:30 PM
continuitycenters.com
How can we make the CSS page fit into a droid screen? Is there some code to do this?
H
#2
Posted 21 June 2012 - 03:49 PM
ASP is a serverside code framework not something that can be replaced with CSS?
Is it just that you now style the HTML structure using CSS rather than whatever HTML you previously used?
If so,
http://www.w3.org/TR...3-mediaqueries/
http://www.alistapar...ive-web-design/
http://css-tricks.co...-media-queries/
I do find it rather curious and rather ironic that documents built using so-called "responsive web design" are unbelievably SLOW, you could have time to make a brew before Chris Coyier's documents finally render
#3
Posted 21 June 2012 - 09:27 PM
My new page, which is done completely in CSS, does not auto fit into the droid screen, yet they are built using the same dimensions. I want to know if there is a way to make a CSS/HTML site do that.
H
#4
Posted 22 June 2012 - 07:31 AM
#5
Posted 22 June 2012 - 07:50 AM
https://developer.mozilla.org/en/Mobile/Viewport_meta_tag
All I have done in HTML in the past six or seven years have ALL behaved perfectly well on ALL devices I have tried no matter what the physical screen size is, from a 4.3 QVGA of the Nokia N95 to a 7" Android Tablet.
And all I do is use CSS to specify the layout of the HTML elements. What I use are RELATIVE dimensions (%,em & ex). This also allows the zooming of touch screens to function correctly.
Try www.modtalk.co.uk with any device you wish to use.
There is no magic fix and the "responsive design" fad at the moment isn't all it is chraiched (cracked) up to be. (IMO)
#6
Posted 22 June 2012 - 09:10 AM
From what you say, do I gather that Font Sizes by the Pixel or Point don't Zoom on some platforms ??
#7
Posted 22 June 2012 - 09:50 AM
But yes pixels and points do not zoom or if they do zoom they don't do it particularly well.
You also have to be aware that there are TWO kinds of pixels, screen pixels and CSS pixels, and the graphics engine on the video card in the hardware that the document is being displayed on has the task of calculating the screen pixels arrangement in "twips" (a twip being 1/1440 of an inch ) that correspond to the CSS pixels sizes that the browser rendering engine has sent to the system.
Using relative dimensioning allows the browser rendering engine to give a scaling factor in to the hardware, rather than it sending exact sizes and making the hardware do all the "twips to pixels" mathematics.
Just as an aside, twip scaling is one reason why Mac graphics are superior to PC graphics.
Edited by chrishirst, 22 June 2012 - 09:51 AM.
#8
Posted 22 June 2012 - 01:33 PM
I don't use point myself, but frequently come across them on older sites.
As for relatives like em or % what are they relative to ??
What do you set the global font size for the relative operator to work on.
Surely that has to be pixels otherwise they are likely to be set to the Browser Default. Now that would make layout unpredictable to an extent that a lot of designs might break with unpredictable overlaps or white space.
#9
Posted 23 June 2012 - 04:18 AM
Ah, great question.As for relatives like em or % what are they relative to ??
the quick answer is, they are relative to the inheritable properties from the immediate ancestor (parent element). However with the property cascade it does get more involved than that.
The body element is the ultimate arbiter of inheritance, so if you set a body font-size of 18px that will become the size for 1em/1ex, but you must be aware that when using relative dimensions, if you have set the parent element to say, 0.3em and explicity set a child to 0.3em as well, the child font size will become ~1/3 smaller than the parent and NOT 1/3 of 1em.
Edited by chrishirst, 23 June 2012 - 04:19 AM.
#10
Posted 23 June 2012 - 09:48 AM
I have however been setting the Body to in most cases 14px in either Verdana or Tahoma.
Then when any other size was needed I would define that in pixels. Of course, it's only relatively recently that the need to factor in Android and the like which employ smaller displays with zooming.
With my approach above, I had not noticed any visibility degradation, but of course I had not increased my range of platform testing to keep up with the rapid expanse of hand-helds. My only testing in that direction was to ask someone else to visually validate on their ipad or Android etc. Getting a "that looks fine" being as accurate an evaluation as could be expected.
#11
Posted 24 June 2012 - 10:51 PM
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users








