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
Post a Comment