Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Web and WebWorks Development

Reply
New Developer
thedoug23
Posts: 4
Registered: ‎08-19-2008
My Device: Not Specified
Accepted Solution

CSS - Padding, and Javascript

Hi there

 

I'm a Web Developper and a newby with BB. So i would like to know, after few test non-succesfull, if it is possible to use PADDING on my CSS on the BB navigator? ex: padding-left: 3px; or simple padding: 0px 0xp 0xp 0px;

 

I'm on a 8830 terminal mobile 4.2.2.176 and the navigator is 4.2.2 Openwave (wap)

 

other thing, is there a way to make this javascript work on BB. http://www.devpdv.com/doug/protocoles.html

I'm trying to give the opportunity to poeple to change the font size with the aA link  (but maybe it no possible on BB!)

It is because i got 3 css on this page? (by the way i'm using @media handheld and @media screen on my stylesheet to change design)

 

Hope to see help and have been clear :smileywink:

Please use plain text.
Guru I
Xandrex
Posts: 18,401
Registered: ‎07-29-2008
My Device: Z30, Playbook, 9320BES
My Carrier: B&You _ SFR

Re: CSS - Padding, and Javascript

hello,

the url you provided is not correct... I see errors with Mozilla Firefox.
including :

you are using the padding-width: property which does not exists in CSS2. You can use padding: .

http://www.w3.org/TR/REC-CSS2/box.html#padding-properties

 

 you are using the Element method getBoxObjectFor() which is deprecated and should use instead getBoundingClientRect()

 

moreover, in the HTML code, when I look at it in Firefox, the li elements have no **action attribute so... can't trigger any javascript function




The search box on top-right of this page is your true friend, and the public Knowledge Base too:
Please use plain text.
New Developer
thedoug23
Posts: 4
Registered: ‎08-19-2008
My Device: Not Specified

Re: CSS - Padding, and Javascript

thanx Xandrex

 

hmm yep i see i have put a padding-width in css, but it was just to trying something (and by the way i don't understand what meen padding-width!!!) so u tell me that i can use padding: ? doesn't seem to work on my side :smileysad:

 

By the way, i have arrange the page and now u can see the AA for my javascript trigger to change font size. It a onclick="setActiveStyleSheet('standard'); return false;", but like i said maybe this javascript doesn't work on BB!!

 

Thanx for the help Xandrex

 

ps: sorry for my english :smileysad:

Please use plain text.
New Developer
thedoug23
Posts: 4
Registered: ‎08-19-2008
My Device: Not Specified

Re: CSS - Padding, and Javascript

haaaaaaaaaaa i just read that PADDING doesn't work on BB Browser 4.2 and only begin to work with 4.3!!
Please use plain text.
Guru I
Xandrex
Posts: 18,401
Registered: ‎07-29-2008
My Device: Z30, Playbook, 9320BES
My Carrier: B&You _ SFR

Re: CSS - Padding, and Javascript

remember that when developping, it is highly recommended to verify if your HTML is clean. Same for the CSS.
=> http://validator.w3.org/

=> http://jigsaw.w3.org/css-validator/

 

for the English, pas de pb, je comprends tout. :smileywink:

 

anyway, I think you needn't care about the font size. It's the user's choice.




The search box on top-right of this page is your true friend, and the public Knowledge Base too:
Please use plain text.
New Developer
thedoug23
Posts: 4
Registered: ‎08-19-2008
My Device: Not Specified

Re: CSS - Padding, and Javascript

je viens de t'envoyer un message personnel, tu iras voir quand tu auras du temps....cela m'aidera Obi-wan kenobi:smileywink:
Please use plain text.