How to style UNORDERED LISTS using HTML and CSS:
First create HTML file as given here:
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" href="css/primary.css">
</head>
<body>
<ul>
<li>Fast</li>
<li>Easy to access</li>
<li>Free</li>
</ul>
</body>
</html>
Create a CSS file as given here:
ul{
list-style-type: none;
list-style-position: inside;
list-style-image:url(../images/tick.png);
padding: 0;
margin: 0;
}
0 comments:
Post a Comment