views:

1810

answers:

2

Hey there,

I'm using the jQuery plugin "corner": http://www.malsup.com/jquery/corner/ Its almost doing a great job making my divs round at the edges.

The problem is, my divs have borders of 1px applied. This works great in Safari, FF, Chrome etc. Only in IE (8) the borders will disappear. It does render the edges round, but no borders.

On the site mentioned above I found that $(this).corner('keep'); will keep the borders. I tried that, but then IE will output square corners (not rounded) and correctly show the borders.


Any help? thx, Mexx

+1  A: 

According to the documentation on their site, you can nest two div so it looks like there is a border (it will work on IE).

$(this).corner("round 8px").parent().css('padding', '1px').corner("round 10px")

I personnally think it's ugly since you have to add useless markup, but I'm affraid it's the only solution if you want to stick to this plugin.

I know there are other solutions out there if you want to use CSS3's border-radius in IE. You should read what Microsoft is saying about it (and click on the links provided): http://msdn.microsoft.com/en-us/library/bb250413%28VS.85%29.aspx

Guillaume Flandre
thx Flandre, but I've got to many elements and its a Shop system so I'm not gonna add aditional markup. Mexx
Max
A: 

Try it with: $(this).corner("round 38px").parent().css('padding', '1px').corner("round 40px")

there is a problem too.

Gerhard
I don't understand why you would answer a question almost a year old with almost the exact same answer as the only other existing answer.
Blair McMillan