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

user interface - Python attempting to create a simple gui, getting "AttributeError: 'MainMenu' object has no attribute 'intro_screen'" -

jquery - Common JavaScript snippet to share files on Google Drive, Dropbox, Box.net or SkyDrive -

Android Gson.fromJson error -