<style type="text/css">
@-webkit-keyframes fade{
from {opacity:.5;}
50% {opacity:1;}
to {opacity:.5;}
}
#anim1 {-webkit-animation-name:fade;-webkit-animation-duration:5s;
-webkit-animation-iteration-timing-function:linear;
position:relative;-webkit-animation-iteration-count:infinite;}
</style>
<head>
<title>CSS Animations</title>
<style type="text/css">
@-webkit-keyframes fade{
from {opacity:.5;}
50% {opacity:1;}
to {opacity:.5;}
}
@-moz-keyframes fade{
from {opacity:.5;}
50% {opacity:1;}
to {opacity:.5;}
}
@-o-keyframes fade{
from {opacity:.5;}
50% {opacity:1;}
to {opacity:.5;}
}
@-ms-keyframes fade{
from {opacity:.5;}
50% {opacity:1;}
to {opacity:.5;}
}
#anim1 {-webkit-animation-name:fade;-webkit-animation-duration:5s;
-webkit-animation-iteration-timing-function:linear;position:relative;
-webkit-animation-iteration-count:infinite;-moz-animation-name:fade;
-moz-animation-duration:5s;-moz-animation-iteration-timing-function:linear;
-moz-animation-iteration-count:infinite;-o-animation-name:fade;
-o-animation-duration:5s;-o-animation-iteration-timing-function:linear;
-o-animation-iteration-count:infinite;-ms-animation-name:fade;
-ms-animation-duration:5s;-ms-animation-iteration-timing-function:linear;
-ms-animation-iteration-count:infinite;}
</style>
<script language="JavaScript">
var i = 0;
var path = new Array();
// LIST OF IMAGES
path[0] = "image1.jpg";
path[1] = "image2.jpg";
path[2] = "image3.jpg";
function swapImage1()
{
document.slide.src = path[i];
if(i < path.length - 1) i++; else i = 0;
setTimeout("swapImage1()",5000);
}
window.onload=swapImage1;
</script>
</head>
<body>
<div id="anim1"><img height="400" name="slide" src="image_1.gif" width="600" />
</div>
</body>
</html>

// LIST OF CAPTİONS
caption[0] = "Caption for the first image";
caption[1] = "Caption for the second image";
caption[2] = "Caption for the third image";
function swapImage(){
var el = document.getElementById("mydiv");
el.innerHTML=caption[i];
var img= document.getElementById("anim1");
img.src= image[i];
if(i <k ) { i++;}
else { i = 0; }
var link= new Array();
link[0] = "http://www.siteforinfotech.com/";
link[1] = "http://www.siteforinfotech.com/p/tutorial.html";
link[2] = "http://www.siteforinfotech.com/p/mcqs.html";
function swapImage(){
var el = document.getElementById("mydiv");
el.innerHTML=caption[i];
var img= document.getElementById("anim1");
img.src= image[i];
var a = document.getElementById("link");
a.href= link[i];
if(i <k ) { i++;}
else { i = 0; }
.all{
border:2px solid red;
-moz-border-radius:10px;
-webkit-border-radius:10px;
border-radius:10px;
width:250px;
}
.topleft{
border:2px solid red;
-moz-border-top-left-radius:10px;
-webkit-border-top-left-radius:10px;
border-top-left-radius:10px;
width:250px;
}
.topright{
border:2px solid red;
-moz-border-top-right-radius:10px;
-webkit-border-top-right-radius:10px;
border-top-right-radius:10px;
width:250px;
}
.bottomleft{
border:2px solid red;
-moz-border-bottom-left-radius:10px;
-webkit-border-top-left-radius:10px;
border-bottom-left-radius:10px;
width:250px;
}
.bottomright{
border:2px solid red;
-moz-border-bottom-right-radius:10px;
-webkit-border-bottom-right-radius:10px;
border-bottom-right-radius:10px;
width:250px;
}
Use above CSS code with the following HTML code given.<html>
<head>
<title>CSS code for rounded corners</title>
<style type="text/css">
//place the abobe CSS code
</style>
</head>
<body>
<div class="all">All rounded corners</div>
</br>
<div class="topleft">Topleft rounded corner</div>
<br/>
<div class="topright">Topright rounded corner</div>
</br>
<div class="bottomleft">Bottomleft rounded corner</div>
<br/>
<div class="bottomright">Bottomright rounded corner</div>
</body>
</html>
<div style="border:2px solid light-blue; -moz-border-radius:10px;
background-color:blue; z-index:10;-webkit-border-radius:10px;
border-radius:10px;width:110px;text-align:center;
color:white;cursor:pointer;">
CSS button
</div>
body{
background:#00aaff;
font-color:#00000;
font-size:16px;
}
h1, h2, h3 {
/* CSS codes for h1, h2, h3 */
}
#wrapper{
width:80%;
margin: 0 auto;
background:#fff;
padding:20px;
}
#content{
width:54%;
float:left;
margin-right:3%;
}
#header{
width:100%;
margin-top:2%;
}
#sidebar-left{
width:20%;
float:left:
margin-right:3%;
}
#sidebar-right{
width:20%;
float:left;
}
#footer{
width:100%;
}
body{
background:#00aaff;
font-color:#00000;
font-size:16px;
}
h1, h2, h3 {
/* CSS codes for h1, h2, h3 */
}
#wrapper{
width:80%;
margin: 0 auto;
background:#fff;
padding:20px;
}
#header{
display:none;
}
#content{
width:100%;
clear:both;
margin-right:3%;
}
#sidebar-left{
display:none;
}
#sidebar-right{
display:none;
}
#footer{
display:none;
}
<a href="javascript:window.print()"> Print this page </a>
<a href="javascript:window.print()"> <img src="print.jpg"></a>

<form><input type="button" value="Print This" onclick="window.print()"></form>
Responsive web design is the approach that suggests in which design and development should respond user behavior and environment based on the size of the browser screen, platform and orientation.
<meta name="viewport" content="width=device-width/">
<meta name="viewport" content="width=device-width, height=device-height/">
<meta name="viewport" content="width=device-width, initial-scale=2"/>
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1/">
#wrapper {
width:85%;
}
#content{
width:100%;
}
#sidebar-left{
width:100%;
clear:both;
}
#sidebar-right{
width: 100%;
clear:both;
} <link rel="stylesheet" media="screen" href="screen.css"/>
<link rel="stylesheet" media="screen and (max-width:1280px)" href="large.css"/>
<link rel="stylesheet" media="screen and (max-width:480px)" href="small.css"/>
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1 -strict.dtd">
<html expr:dir='data:blog.languageDirection' xmlns='http://www.w3.org/1999/xhtml' xmlns:b='http://www.google.com/2005/gml/b' xmlns:data='http://www.google.com/2005/gml/data' xmlns:expr='http://www.google.com/2005/gml/expr'>
<head>
<title>
<b:if cond='data:blog.pageType == "index"'>
<data:blog.pageTitle/>
<b:else/>
<b:if cond='data:blog.pageType != "error_page"'>
<data:blog.pageName/> | <data:blog.title/>
<b:else/>
Page Not Found | <data:blog.title/>
</b:if>
</b:if>
</title>
</head>
body{
font:normal normal 14px Verdana,Geneva,sans-serif;
color:#000;padding:0 40px 40px 40px;
background:#fff;
font-size:14px;
}
#outer-wrapper{
CSS for outer-wrapper
}
#header-wrapper{
CSS for header-wrapper
}
#titlewrapper{
CSS for titlewrapper
}
#descriptionwrapper{
CSS for descriptionwrapper
}
#menuwrapper{
CSS for menuwrapper
}
#contentwrapper{
CSS for contentwrapper
}
#mainwrapper{
CSS for mainwrapper
}<div id='menuwrapper'>
<ul class='FirstLevel'>
<li><a href='http://www.homepage.com/' target='_self'>Home
</a></li>
<li><a href='http://www.homepage.com/menu1.html' target='_self'>Menu1
</a></li>
<li><a href='http://www.homepage.com/menu2.html' target='_self'>Menu2
</a></li>
<li><a href='http://www.homepage.com/menu3.html' target='_self'>Menu3
</a></li>
</ul></div>
<div id='outer-wrapper'>
<div id='header-wrapper'>
<b:section class='header' id='header' maxwidgets='1' showaddelement='no'>
<b:widget id='HTML1' locked='true' title='Header' type='HTML'>
</b:widget>
</b:section>
</div>
<div id='content-wrapper'>
<div id='main-wrapper'>
<b:section class='main' id='main' showaddelement='no'>
<b:widget id='Blog1' locked='true' title='Blog Posts' type='Blog'>
</b:widget>
</b:section>
</div>
</div>
</div>
<div id='sidebar-wrapper'>
<b:section class='sidebar' id='sidebar' showaddelement='yes'>
</b:section>
</div>
<div id='footer-wrapper'>
<b:section class='footer' id='footer' showaddelement='yes'>
</b:section>
</div>

<html>
<head>
<title>How To Make Simple CSS StyleSheet for a Website ?</title>
<link rel="Stylesheet" type="text/css" href="style.css">
</head>
<body>
<div id="wrapper">
<div id="banner">
<p>This is banner</p>
</div>
<div id="navigation">
</div>
<div id="content_area">
<p> This is content area</p>
</div>
<div id="sidebar">
<p> This is sidebar</p>
</div>
<div id="footer">
<p> this is footer</p>
</div>
</div>
</body>
</html>
#wrapper {
width:1080px;
margin:0 auto;
padding:10px;
border:5px solid #dedede;
background-color:#fff;
}
#banner {
height:150px;
border:3px solid #e3e3e3;
background-size:cover;
background-image: url("banner.jpg");
background-repeat: no-repeat;
}
#navigation {
height:50px;
border:3px solid #e3e3e3;
margin-top:20px;
width:auto;
background-image: url("nav.jpg");
}
#content_area{
float:left;
width:755px;
margin:20px 0 20px 0;
padding:10px;
border: 3px solid #e3e3e3;
text-align:justify;
}
#sidebar {
float:right;
width:250px;
height:388px;
border:3px solid #e3e3e3;
margin-top:26px;
}
#footer {
clear:both;
width:auto;
height:40px;
margin-top:20px;
background-image: url("footer.jpg");
border:3px solid #e3e3e3;
text-align:center;
color:#fff;
}
<div id="navigation">
<ul id="nav">
<li><a href="#">Home</a></li>
<li><a href="#">Item1</a>
<ul>
<li><a href="#">SubItem1</a></li>
<li><a href="#">SubItem2</a></li>
<li><a href="#">SubItem3</a></li>
<li><a href="#">SubItem4</a></li>
</ul>
</li>
<li><a href="#">Item2</a></li>
<li><a href="#">Item3</a></li>
</ul>
</div>
#navigation{
width:auto;
height:30px;
float:left;
background-image: url('back.jpg');
border:none;
margin-top:20px;
margin-left:0px;
}
#nav{
list-style: none;
padding:0px;
display:block;
margin-top:2px;
}
#nav li{
font-size:20px;
float:left;
position:relative;
width:180px;
hight:50px;
display:block;
align:center;
padding-left:10px;
}
#nav ul{
list-style:none;
margin:0;
padding:0;
width: auto;
display:none;
}
#nav li:hover{
background-image:url('back.jpg');
background-repeat:no-repeat;
background-size:cover;
}
#nav li:hover>ul{
display:block;
position:absolute;
}
#nav li ul{
left:0px;
margin-top:0px;
padding-top:0px;
}
#nav li ul li{
background-image:url('back.jpg');
background-repeat:no-repeat;
background-size:cover;
border:1px solid #e3e3e3;
padding-left:10px;
width:178px;
}
#nav a:link, #nav a:active, #nav a:visited{
display:block;
color:#ff00aa;
text-decoration:none;
}
<head>
<link rel="Stylesheet" type="text/css" href="style.css">
</head>
| English: graphic of the main CSS table spaces (Photo credit: Wikipedia) |
| Box model in CSS (Photo credit: Wikipedia) |
| English: css - absolute position (Photo credit: Wikipedia) |