...

mobile design beginner needs help

sethwb
03-30-2010, 02:33 PM
Hi Everyone,

I have a fluid layout that expands the full width of your mobile device.

There are 3 buttons at the bottom that I want to center the text in depending on the size of the screen.

I want to resize the width of each link according to the ratio I've started with, could anyone please tell me the equation used to determine that? I'd appreciate it, here's the numbers:

Total width of base design: 240px

Div1 (far left): 62 pixels wide
Div2 (middle): 110 pixels wide
Div3 (far right): 68 pixels wide

So - how can I figure out the correct width for each if I am adapting the design to 320, 480 and 800 pixels?

Teach me how to fish instead of giving it to me and I WILL reciprocate :)

Thanks,
seth

VIPStephan
03-30-2010, 02:54 PM
Use relative units like percent.

sethwb
03-30-2010, 04:36 PM
I remembered after waking up a bit -

(62/240 * 320/1) / 240

have a nice day :D

sethwb
03-30-2010, 04:39 PM
Haha you is the man.. why didn't I think of that before?

thx Stephan :thumbsup:



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum