CSS for Blackberry

HTML, CSS and anything else that deals with client side capabilities.

Moderator: General Moderators

Post Reply
simonmlewis
DevNet Master
Posts: 4435
Joined: Wed Oct 08, 2008 3:39 pm
Location: United Kingdom
Contact:

CSS for Blackberry

Post by simonmlewis »

Hi
I am trying to get an image to stretch to 98% of the screen, up to the max width of the image.

Code: Select all

.logobox img
{
  max-width:98%;
}
This works on an iphone, but on a Blackberry 8520, it doesn't automatically resize the height of the image.

I can't set the height of the image in pixels, so how do I stop it giving a 'squashed' look?
Love PHP. Love CSS. Love learning new tricks too.
All the best from the United Kingdom.
bbnaga
Forum Newbie
Posts: 1
Joined: Tue Sep 13, 2011 7:44 am

Re: CSS for Blackberry

Post by bbnaga »

Reference Guide
4.7.0
To view a complete list of topics, expand the topics in the left pane.

CSS reference overview-->http://docs.blackberry.com/en/developer ... 535_11.jsp
CSS Properties-->http://docs.blackberry.com/en/developer ... 456_11.jsp

CSS Reference
6.0
To view a complete list of topics, expand the topics in the left pane.

Supported CSS properties-->http://docs.blackberry.com/en/developer ... 567_11.jsp
Glossary-->http://docs.blackberry.com/en/developer ... 712_11.jsp
Provide feedback-->http://docs.blackberry.com/en/developer ... 036_11.jsp
Legal notice-->http://docs.blackberry.com/en/developer ... 536_11.jsp

cegonsoft
si2ekram15
Forum Newbie
Posts: 2
Joined: Tue Oct 11, 2011 3:07 am

Re: CSS for Blackberry

Post by si2ekram15 »

Nice bbnaga.thank you.
simonmlewis
DevNet Master
Posts: 4435
Joined: Wed Oct 08, 2008 3:39 pm
Location: United Kingdom
Contact:

Re: CSS for Blackberry

Post by simonmlewis »

Not exactly sure how they give the answer, as I sort of thought someone would just say:
"use this".
Love PHP. Love CSS. Love learning new tricks too.
All the best from the United Kingdom.
Post Reply