CSS List Marker

The picture for the list marker is an inadmissible luxury, since it takes a very long time to load.

So I’ll show you some examples of how to create a marker using html and css.

Square Code


  • List

  • List

Circle Code


  • List

  • List

Triangle Code


  • List

  • List

  • List

  • List

Check mark Code



  • List


  • List

Heart Code



  • List


  • List

Square

CSS

.squar {		
	list-style: none;
	font-size: 20px;
}
.square {	
	width: 10px;
	height: 10px;
	background: red;
	float: left;
	margin: 6px 5px 5px 5px;	
}

 HTML

<ul  class="squar">
	<hr class="square"><li>List</li>
	<hr class="square"><li>List</li>
</ul>

Circle

CSS

.circle {		
	list-style: none;
	font-size: 20px;
	line-height: 1.3;
}
.disck {
	width: 12px;
	height: 12px;
	float: left;
	margin: 7px 5px 0 5px;
	border-radius: 50%;
	background: radial-gradient(circle, white, red 4px);
}

HTML

<ul  class="circle">
	<hr class="disck"><li>List</li>
	<hr class="disck"><li>List</li>
</ul>

Triangle

CSS

.triangle1 {
	list-style: none;
	font-size: 20px;
} 
.corner1 {
	border: 6px solid transparent;	
	border-right: 10px solid green;
	float: left;
	margin: 6px 5px 5px 5px;

}
.triangle2 {
	list-style: none;
	font-size: 20px;
}
.corner2 {
	border: 6px solid transparent;	
	border-left: 10px solid green;
	float: left;
	margin: 6px 5px 5px 5px;
} 
HTML

<ul  class="triangle1">
	<hr class="corner1"><li>List</li>
	<hr class="corner1"><li>List</li>
</ul>

<ul  class="triangle2">
	<hr class="corner2"><li>List</li>
	<hr class="corner2"><li>List</li>
</ul>

Check mark

CSS 

.daw {
	list-style: none;
	font-size: 20px;
}
.mark {
	width: 2px;
	height: 12px;
	margin: 2px 5px 5px 0;
	background: green;
	float: left;
	transform: rotate(-25deg);
	z-index: 1;
}
.mark1 {
	width: 2px;
	height: 10px;
	background: green;
	margin: 4px 5px 5px -5px;
	float: left;
	transform: rotate(25deg);
}

HTML

<ul  class="daw">
	<hr class="mark"><hr class="mark1"><li>List</li>
	<hr class="mark"><hr class="mark1"><li>List</li>
</ul">

Heart

CSS

.amur {
	list-style: none;
	font-size: 20px;
}
.love {
	border-radius: 5px 10px 0 10px;
	width: 10px;
	height: 10px;
	margin: 6px -6px 5px 0;
	background: red;
	float: left;
}
.love1{
	border-radius: 10px 5px 10px 0;
	width: 10px;
	height: 10px;
	margin: 6px 5px 5px 0;
	background: red;
	float: left;
} 

HTML

<ul  class="amur">
	<hr class="love"><hr class="love1"><li>List</li>
	<hr class="love"><hr class="love1"><li">List</li>
</ul>

Symbol

CSS

.symb {
	list-style: none;
	font-size: 18px;
	line-height: 1.3;
}
.symbol {
	margin: 0 5px 0 0;
	color: red;
	font-weight: bold;
	float: left;
	
}

HTML


<ul  class="symb">
	<span class="symbol">®</span><li>List</li>
	<span class="symbol">®</span><li>List</li>
</ul>

I wish you creative success.

This entry was posted in Free Scripts. Bookmark the permalink.
А так же:

Leave a Reply

Your email address will not be published. Required fields are marked *