iframe style : iframe « Tags « HTML / CSS

iframe style


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
<html xmlns="http://www.w3.org/1999/xhtml">
    <meta http-equiv="content-type" content="text/html; charset=utf-8" />
<style type="text/css" title="text/css">
#iframewrapper {
    width: 200px;
    border: solid 10px #777777;
#bordered {
    width: 200px;
    height: 200px;
iframe {
    width: 200px;
    height: 200px;
    <div id="iframewrapper">
        <iframe src="http://www.java2s.com" 
                id="news">Your browser doesn't support iframes. Please 
                          <a href="http://www.java2s.com">click here</a> 
                          to see the content.


Related examples in the same category

1.'iframe' identifies a frame that can be placed anywhere inside a document
2.Use css to replace iframe
3.An inline frame
5.'allowtransparency' creates the transparent frames
6.'scrolling' sets whether a frame should have a scroll bar or not
7.'security' sets whether the source file has security restrictions