problem in IE with rounded corners on iframe

I have a script which makes the corners of an element rounded.  I am trying to round the corners of an iframe box.  It works in firefox, but I need help getting it to work in internet explorer.

Let me know if you need to see the DD_roundies.js.  It is just one long eval function that makes the corners rounded.
Here is the call to the script.
 
<script type="text/javascript" src="includes/DD_roundies.js"></script>
<script>
    DD_roundies.addRule('#iframe_i_nav', '10px 10px 0 0', true);
</script>
 
 
 
Here is the iframe
<iframe id="iframe_i_nav" name="iframe_i_nav" src="m1_dynamic_nav_frame1pre.jsp" frameborder="0" width="998" scrolling="no" height="25" align="top"  style="background-color:#DFE7FF; border-right-width:1px; border-right-color:#CCCCCC; border-right-style:solid; border-left-width:1px; border-left-color:#CCCCCC; border-left-style:solid; border-top-width:1px; border-top-color:#CCCCCC; border-top-style:solid; ">
If you can see this, your browser does not support iframes!
</iframe>

Open in new window

LVL 1
Shaye LarsenAsked:
Who is Participating?
 
Shaye LarsenConnect With a Mentor Author Commented:
Tried that, got the same result. IE won't allow it

I did get it to work though.  What I did was turned the borders off the iframe and made its background the same as the layer behind it.  Then put a div inside the iframe and put the script on that, so it got the same effect I was looking for.
0
 
Shaye LarsenAuthor Commented:
Update: The jquery works if it is placed on a div in both IE and Firefox,

For instance:
<div id="roundedframe" style="height:25px; background-color:#DFE7FF;"></div>

But if I try to put it on the iframe, it only works on firefox.
0
 
Shaye LarsenAuthor Commented:
didn't mean to say jquery above.
0
 
Michel PlungjanConnect With a Mentor IT ExpertCommented:
So wrap the iframe in a div and turn the borders off
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.