Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

The scrolling attribute on the iframe element is obsolete. Use CSS instead

Tags:

I've embedded a Google map onto my website in an iframe:

<iframe src="http://www.map-generator.net/extmap.php?name=Spot&amp;address=los%20angeles%2C%20ca&amp;width=614&amp;height=244&amp;maptype=map&amp;zoom=14&amp;hl=en&amp;t=1298011905" width="614" height="244" scrolling="no"></iframe> 

This is invalid, and I need to somehow pull off the scrolling aspect in CSS. How would I do this?

like image 249
J82 Avatar asked Feb 19 '11 04:02

J82


People also ask

How do you change the scrolling in iframe?

1) Set the scrolling attribute of the iframe to no (scrolling="no"). This will disable both horizontal and vertical scroll bars. 2) Set the width attribute of the iframe to 200% (width="200%"). This will enable only the horizontal scroll bar.

How do I turn off scrolling in iframe?

Add scrolling="no" attribute to the iframe.

Is scrolling is not supported in HTML5?

Definition and Usage. The <frame> tag is not supported in HTML5. The scrolling attribute specifies whether or not to display scrollbars in a <frame>. By default, scrollbars appear in a <frame> if the content is larger than the <frame>.


1 Answers

<iframe style="overflow:hidden;"></iframe> 
like image 169
jmort253 Avatar answered Sep 22 '22 09:09

jmort253