views:

42

answers:

1

I have an iframe on an html5 document. when I validate I am getting an error telling me that the attribute on the iframe frameBorder is obsolete and to use CSS instead.

I have this attribute frameBorder="0" here because it was the only way I could figure out how to get rid of the border in IE, I tried border:none; in CSS with no luck. Is there a compliant way to fix this?

Thanks.

A: 

HTML 5 doesn't support attributes such as frameborder, scrolling, marginwidth, and marginheight (which were supported in HTML 4.01). Instead, the HTML 5 specification has introduced the seamless attribute. The seamless attribute allows the inline frame to appear as though it is being rendered as part of the containing document. For example, borders and scrollbars will not appear.

Source

More information about html5 iframe and seamless you can find here.

Internet explorer 8 doesn't support all the features of html5 so you will have problem using iframe,htm5,ie together.

Sotiris
So is there a way to produce frameBorder=0 in CSS?
John Isaacks
getting the same result in every browser with html5, as far as I know, you can't.
Sotiris