I have given a from INPUT display:block; but it still does not stretch to fill it’s container automatically. I am hoping to avoid giving it an explicit width ( 100%) as its padding would then make it be larger than its containing element… Maybe this isnt possible or maybe am missing something which is deceptively simple…
any advice would ,as always, be greatly appreciated…
The only thing I would think of trying (though I doubt it would work - much less cross browser) is to float the input left and give it margin-right:-100%.
actually, as much as a I loathe using the extra tag I was experimenting with a span… to which I gave display:block… ( no need to use PR or PA). Great minds think alike I suppose. Still it’s kind of a bummer that you can’t actually override the width setting on a form input…
Paul…
Thats a cool solution, but I was hoping I could go in a different direction. I idea came to me in a post I saw here on SP where someone asked how to make the last in a horizontal menu LI fill the remaining space. That solution, of course, is to make the last LI not float and give it overflow:hidden…for good measure.
it struck me, that floating the label and not the input, then giving the input display:block SHOULD have the same effect on form elements. But it appears that input tags have some sort of default explicit width that I just cant seem to override w/o giving them explicit width… which of course defeats the purpose of my experiment.
[QUOTE=dresden_phoenix;4885298]
it struck me, that floating the label and not the input, then giving the input display:block SHOULD have the same effect on form elements. But it appears that input tags have some sort of default explicit width that I just cant seem to override w/o giving them explicit width… which of course defeats the purpose of my experiment.
[QUOTE]
Inputs are replaced elements have intrinsic dimensions just like images (which are replaced elements also).
Imagine that you are trying to make an image behave in the same way and you can see why it is not possible