I have a form which has some fields and more fields get added dynamically based on the form fields that get selected. How would I get it to expand horizontally as well as vertically as soon as new form fields are being added. Also should I use sprites for this or just put an image tag with rounded corners. I don’t want to achieve this with CSS3 please. Can I achieve this using clip property.
I have a form which has some fields and more fields get added dynamically
Share
To create a rounded corner effect, I usually draw a circle and then use it as a background within 4 absolutely positioned divs within the element that needs rounded corners.
The height of each absolutely positioned div is half the height of the circle and the width of each div is half the width of the circle.
CSS
HTML
It is a bit of a long-winded way of doing it but it will work for browsers that do not support rounding corners through CSS and will expand to fit any element size.
JSFiddle: http://jsfiddle.net/UAyVJ/