Thursday, 19 July 2012
How to set Advanced background example using css
<!DOCTYPE html>
<html>
<head>
<style type="text/css">
body
{
margin-left:200px;
background:#5d9ab2 url('your-img.png') no-repeat top left;
}
.container
{
text-align:center;
}
.center_div
{
border:1px solid gray;
margin-left:auto;
margin-right:auto;
width:90%;
background-color:#d0f0f6;
text-align:left;
padding:8px;
}
</style>
</head>
<body>
<div class="container">
<div class="center_div">
<h1>Hello viewers!</h1>
</div>
</div>
</body>
</html>
This post was written by: Bharathi
Bharthi is a professional blogger, web designer and front end web developer. Follow him on Twitter
Subscribe to:
Post Comments (Atom)
0 Responses to “How to set Advanced background example using css”
Post a Comment