Hi dear welcome to "CodePrime" Blog . In this post we are going to learn abot CSS List Property. First Creat A index.html file Copy This HTML CODE and pest it one your code editor. 2ndly creat style.css file Then Copy The CSS CODE and pest it then open the index.html file with your browser.
HTML
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>css list property - By CoedPrime</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<div class="title">CSS List Property</div>
<p>Unorder List</p>
<ul>
<li>Helo</li>
<li>Helo</li>
<li>Helo</li>
<li>Helo</li>
</ul>
<p>Order List</p>
<ol>
<li>Helo</li>
<li>Helo</li>
<li>Helo</li>
<li>Helo</li>
</ol>
</body>
</html>
CSS
*{
font-family: sans-serif;
}
.title{
font-size: 2rem;
background: linear-gradient(45deg,#f09, #111);
padding: 5px 10px;
text-align: center;
color: #fff;
margin-top: 20px;
text-transform: uppercase;
}
p{
font-size: 1.5rem;
background: linear-gradient(45deg,#f09, #111);
padding: 5px 10px;
text-align: center;
color: #fff;
margin-top: 20px;
text-transform: uppercase;
}
li{
font-size: 2rem;
list-style-type: square;
/* list-style-position:inside; */
/* list-style-image: url(/dimond-icon.jpg) ; */
/* color: #f09; */
}
0 Comments