Is there a best practice for elements like textarea, select and input to set their sizes so that they fill the available space to 100% and have aligned (left and) right borders?

It looks like the rendering is platform dependent so I guess there is no cross-browser/cross-platform way to implement this?

1 answer

This was chosen as the best answer

If you are trying to render form elements as described check the code below. It should, at the very least get you set on the right path.

submit, textarea, select{width:100%; float:left; display:block;}

of course the is dependent on the div that surrounds your form which should have set w and h on it and overflow:hidden; as well as float:left

Answered over 8 years ago by Jeffrey Nolte