Nati323 Posted March 14, 2015 Share Posted March 14, 2015 (edited) hello , i have seen here: http://www.w3schools.com/tags/tag_iframe.asp, that you specified the value of width and height pixels, so i concluded that pixels yes percent no, its right? because when i do to iframe width="100%" its work (at chrome at least).dose its work in all browsers and all versions? its legal? if not , with css its possible? edit: now i see this : http://www.w3schools.com/tags/att_iframe_height.asp , and you wrote there that in html 5 % dosent work. what i can do? Edited March 14, 2015 by Nati323 Link to comment Share on other sites More sharing options...
Ingolme Posted March 14, 2015 Share Posted March 14, 2015 The width and height attributes use pixels as units, but you can use CSS to style it with percentages. Link to comment Share on other sites More sharing options...
Nati323 Posted March 14, 2015 Author Share Posted March 14, 2015 you mean that i should do only this: iframe {width: 100%;height: 100%;} ? Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now