Creating an Iframe in CSS

Creating Iframe with help of CSS is an easy task. We will take help of CSS selector.

<style type="text/css">
.iframe_class{
    height:150px;
    width:300px;
    overflow:auto;
    color:#fff;
    background:#369;
    border:1px solid #33a;
    padding: 3px;
}
</style>

Somewhere in body, we can use above created iframe_class selector in following way.

<span class="iframe_class">Some Text Goes Here.. Dummy Text.</span>

Download Example:
Example of Creating Iframe in CSS

1 reply to Creating an Iframe in CSS

  1. Pingback: Matthew Beach

Leave a Reply

Your email address will not be published. Required fields are marked *