ssadfaf
-
Posts
4 -
Joined
-
Last visited
Content Type
Profiles
Forums
Events
Posts posted by ssadfaf
-
-
upd: The validator tells about mistake: The scrolling attribute on the iframe element is obsolete. Use CSS instead.
But CSS doesn't work properly. Is it a kind of joke?
-
min-height is not valid for iframe. You have to have a fixed width and height and only then will overflow: hidden; work. Also, float: bottom; is not valid.
TY!
I removed min-height and float, but with no effect for scroll bars.
I made it so:
<iframe scrolling="no" width="260" style="overflow:hidden; border:0" src="../htm/linkz.html">
It works everywhere. Hope, it will work also in the future browsers.
-
http://www.w3schools.com/tags/att_iframe_scrolling
How?
I placed 'overflow' attribute
<iframe width="260" style="min-height:250px; overflow:hidden; float:bottom; border:0" src="../htm/linkz.html">
but only FF understood it correctly.
Opera-next, Chrome ignore this attribute.
I want to use only HTML5 specs , is it possible to solve using only HTML5?
And will it be correct to use 'overflow' att. in the future, when all browsers will support html5?
TY in advance
The <iframe> scrolling attribute is not supported in HTML5. Use CSS instead.
in CSS
Posted · Edited by ssadfaf
I'm afraid is this neither HTML nor CSS notation.
Very good proposal, TY.
BUT sometimes I need to use iframe width:100%, so I cannot use it universally.