/    Sign up×
Community /Pin to ProfileBookmark

Different definitions, same result

I have created the following CSS style tag.

[code]
<style type=”text/css”>
@media print { body { font-size: 16pt } }
@media screen, print { body { line-height: 1.2 } }

@media screen {
body { font-size: 1.2em; }

.btn { font-size:1.2em; width:18%; }
.btnAct { font-size:0.8em; width:18%; }
#kbrd { width:30%; }
border:3px solid blue;
}

@media handheld {
body { font-size: 1.5em; }

.btn { font-size:1.2em; width:18%; }
.btnAct { font-size:0.8em; width:18%; }
#kbrd { width:90%; }
}
</style>
[/code]

I thought I would be getting two different keyboard (#kbrd) displays, one for the desktop screen and a larger one for the handheld device.

What appears to be happening is that only the first #kbrd definition is being recognized
as each device appears to be taking up 1/3 of the display.

Am I doing something wrong with the definitions. ?

to post a comment
CSS

2 Comments(s)

Copy linkTweet thisAlerts:
@rtretheweyJun 19.2012 — I'm just starting with mobile, too, and it seems that smart phones and tablets don't obey @handheld settings. Every site is different, but you might consider @max-width or @orientation:portrait.
Copy linkTweet thisAlerts:
@JMRKERauthorJun 19.2012 — Thanks, I'll check those out.

Appreciate the direction to look.
×

Success!

Help @JMRKER spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 4.29,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,

tipper: @Samric24,
tipped: article
amount: 1000 SATS,
)...