Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

IE9 fieldset rounded corners

I cannot seem to make IE9 render a fieldset with rounded corners whereas other browsers do. Has anyone encountered this too ?

like image 216
GADOI Avatar asked Jan 03 '11 12:01

GADOI


3 Answers

This happens only if you use <fieldset> with <legend> - without it the corners render ok.

You can fix this bug by applying display:inline or display:inline-block to your <legend> element - but than you have to reposition it back in place by setting position:relative and moving it around.

Depending how the styling of your legend looks like (with background it will look the same - without the background the border of fieldset will still be visible behind the letters) you can make it look pretty much the same as in other normal browsers.

like image 144
easwee Avatar answered Oct 15 '22 19:10

easwee


From my experence in the latest version of IE9, I can not get a fieldset with legend to have a radius. I have not had any trouble with other borders in IE9, the css3 border-radius works just fine, just fieldset/ledgend. I'm still scratching my head over this.

like image 30
Irv Lennert Avatar answered Oct 15 '22 18:10

Irv Lennert


I too used to use fieldset and for more than just forms, but the constant hit and miss on compatibility has caused me to dump them. Better to write your own CSS DIV Classes that emulate fieldset. Using CSS you can get an exact replica of what fieldset looks like and you have a lot more flexibility and compatibility

like image 33
josh Avatar answered Oct 15 '22 18:10

josh