javascript - getSize to calculate and set width of input field -


i have div containing input field , submit button. design needs fluid: height of submit button set height 100% (the parent div build in percentages).

i want set width of input field: 100% - (width of submit button). i'm using mootools navigational purposes, figured getsize().x method used on submit button , use value set style of input.

i'm learning mootools, set me in right direction?

how giving input field 70% width , submit button 30%?

indeed no js needed.


Comments

Popular posts from this blog

blackberry 10 - how to add multiple markers on the google map just by url? -

php - guestbook returning database data to flash -

delphi - Dynamic file type icon -