A Simple Program TO Use CSS
It is used in html:
<html>
<head>
<style>
h1
{
color:#33FF99;
background-color:#0066FF;
}
</style>
</head>
<body>
<h1>I love My Parents</h1>
</body>
</html>
|
Some Basic Style:
Font Style:
1.
color:red;
2.
font-weight:bold;
3.
font-style:italic:
4.
font-size:18px
5.
font-family:Times
new roman;
6.
text-align:right;
7.
text-decoration:underline;
line-through;
none;
Background:
1.
background-color:red;
2.
background-image:url(“a.jpg”)
3.
background-size:200px 300px
width height
4.
background-repeat:no-repeat;
repeat-x
repeat-y
5.
background-position:250px 250px
50% 50%
Width height
6.
background-attachment:fixed;
scroll;
List:
1.
list-style:disc;
decimal;
uppar-roman;
latin
2.
disply:inline;
|
No comments:
Post a Comment