CSS Image Background Position Example :
<!DOCTYPE html>
<html>
<head>
<title> kod4u </title>
<style type="text/css">
body {
background-image:url("img/css.jpg");
background-repeat:no-repeat;
background-position:top center;
}
</style>
</head>
<body>
<h1> Background Position Example </h1>
<p> Background Position property can set image in any web page side. </p>
<p> LIKE Top, Bottom, Center, Left, Right. </p>
</body>
</html>
OUTPUT
<html>
<head>
<title> kod4u </title>
<style type="text/css">
body {
background-image:url("img/css.jpg");
background-repeat:no-repeat;
background-position:top center;
}
</style>
</head>
<body>
<h1> Background Position Example </h1>
<p> Background Position property can set image in any web page side. </p>
<p> LIKE Top, Bottom, Center, Left, Right. </p>
</body>
</html>
No comments:
Post a Comment