views:

1217

answers:

4
+1  A: 

The corners plugin (at least the one I found in http://www.malsup.com/jquery/corner/) is invoked with "corner", not "corners".

Try using this instead:

<script type="text/javascript">
  $(document).ready( function(){
    $('.rounded').corner();
  });
</script>

That's working fine for me in IE 7 and Opera 10.

Seb
As you can see from my photo, the Corners bit is correct as its doing it, the gap is the problem! but cheers anyway Seb.
JamesM
PS - I got my origional code from here - Libraries from jQuery.com
JamesM
forgot to link: http://www.atblabs.com/jquery.corners.html
JamesM
Yeh, sorry, started writing my answer before you posted your image... It's so weird, I really don't know then, sorry :(
Seb
Could you try using the script I linked? Maybe it's a bug in yours and there's no workaround for that...
Seb
Just tried, same result. :( I have wrapped the outside div around the inside div so I can then set a colour to the background of the outer div. Also just found out it renders perfect in Firefox and I believe its todo with the Box Model in IE.
JamesM
JamesM
Not sure what your entire code looks like, but it's working for Opera 10 here... Maybe you're using Opera 9?
Seb
+1  A: 

Remove the 25px bottom margin on the div#divOuter.

Tyler Rash
A: 

Controversial and possibly not helpful answer coming up:

Use:

-moz-border-radius      /* for firefox */
-webkit-border-radius   /* for webkit browsers */

And ignore Internet Explorer. Rounded corners are a visually nicety and usually not functional elements, so weigh up how much effort you want to put into getting it working for IE users when other, decent browsers make it so easy and reliable.

nickf
jquery.corners.js really is NOT much effort to to get the appearance you want on the majority of browsers in use
Scott Evernden
...assuming you've already got the jQuery library loaded. (which I acknowledge the OP has)
nickf
A: 

I believe that Tyler has the right answer. I would just like to add that I develop in FireFox for reasons like this. Using the Firebug add-on makes it much easier to trace down CSS problems like this. You can use "inspect" and select the offending objects and edit the CSS on the fly in FireBug to determine what is causing the gap.