Example-1:
<html>
<head>
<style>
.abc{
border : 1 solid blue;
width :150;
height :150;
}
</style>
</head>
<body>
<p class="abc"> Welcome to Css </p>
</body>
</html>
Example-2
<html>
<head>
<style>
.abc{
border :1 solid blue;
width :1000;
height :1000;
background :url(winter.jpg);
background :red;
background-color :blue;
background-image :url(msslogo.jpg);
background-repeat:no-repeat;
(repeat-x , repeat-y )
background-position:left top;
right bottom
center center
}
</style>
</head>
<body>
<p class="abc"> Welcome to CSS </p>
</body>
</html>
<html>
<head>
<style>
.abc{
border : 1 solid blue;
width :150;
height :150;
}
</style>
</head>
<body>
<p class="abc"> Welcome to Css </p>
</body>
</html>
Example-2
<html>
<head>
<style>
.abc{
border :1 solid blue;
width :1000;
height :1000;
background :url(winter.jpg);
background :red;
background-color :blue;
background-image :url(msslogo.jpg);
background-repeat:no-repeat;
(repeat-x , repeat-y )
background-position:left top;
right bottom
center center
}
</style>
</head>
<body>
<p class="abc"> Welcome to CSS </p>
</body>
</html>
No comments:
Post a Comment