- I'm currently working on developing my first HTML5 app for the playbook, currently just for personal use/enjoyment. I want to use a background image(the same one) for all my pages, and have a semi-transparent box above it where all my actual data would go. The only problem is that the image is slightly too small for the width of the playbook, while height is fine. I used CSS to stretch it to fit, but for some reason it shrunk the height to a quarter of the playbook, while stretching the with to 100%. I can't seem to figure out how to fix it.
Also, as a side question, for the box above it, would I need specific dimensions? Or is there a way to just set a border width and it'll fit itself to the playbook screen?
Thanks for any help anyone can give me on either issue!04-11-12 10:47 AMLike 0 - This is WAY above my pay grade, but good luck anyway! Looking forward to seeing what you in the works. Wanna give us a hint?04-11-12 01:56 PMLike 0
- Never coded a HTML5 app before but -I've made a few webpages and teach HTML+CSS+JS.
First of all I would crop your background picture. If you stretch it you run the risk of distortion and/or pixellation which will make your app look cheap. Personally, I would avoid background pictures unless you are putting your text on top of another solid colour layer.
With your CSS issues, avoid percentages, define the size of your elements in pixels. This ensures that the CSS renders correctly. Beware of hidden margins/padding.
Hope that helps ...04-11-12 01:58 PMLike 0 - I'm currently working on developing my first HTML5 app for the playbook, currently just for personal use/enjoyment. I want to use a background image(the same one) for all my pages, and have a semi-transparent box above it where all my actual data would go. The only problem is that the image is slightly too small for the width of the playbook, while height is fine. I used CSS to stretch it to fit, but for some reason it shrunk the height to a quarter of the playbook, while stretching the with to 100%. I can't seem to figure out how to fix it.
Also, as a side question, for the box above it, would I need specific dimensions? Or is there a way to just set a border width and it'll fit itself to the playbook screen?
Thanks for any help anyone can give me on either issue!04-11-12 03:31 PMLike 0 - Either use "width: 100%" or go into a program such as Paint and modify the size of the image.(The picture would look better this way)04-12-12 06:29 AMLike 0
- Forum
- BlackBerry PlayBook Forums
- PlayBook Apps & Games
Quick Question
LINK TO POST COPIED TO CLIPBOARD