What is annoying, however, is that I don't want the parent <span> (inputleft) to be floated because that could, potentially, interfere with my page layout. Nor do I want to have to put dividers (which clear:all) in appropriate places since the styling et cetera is done with javascript to normal input tags.
When I remove the "float:left" property from the parent <span> tag, I can no longer see its background image anymore, which makes the whole effect pointless. I don't understand why it does this because it still has the padding-left value, which should (surely!) push the <input> element 5px to the right and make the thing visible again, no?
Any help would be much appreciated.
05-17-2009, 10:49 AM
blue-eye-labs
I appear to have fixed it by removing the width and height attributes. I assume having width & height as "auto" it made it the right width to contain the input and anchor tags.
I don't know why the left padding wasn't working but it seems that everything is now solved.