Quantcast
Channel: Design Gala » CSS
Viewing all articles
Browse latest Browse all 10

Creating an Iframe in CSS

$
0
0

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


Viewing all articles
Browse latest Browse all 10

Trending Articles