<li class="health"><a href="health/health.php" >health</a></li>
ASKER
<link rel="stylesheet" href="http://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.6.3/css/font-awesome.min.css">
<li class="health fa fa-caret-right"><a href="health/health.php" >health</a></li>
ASKER
<link rel="stylesheet" href="http://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.6.3/css/font-awesome.min.css">
<li class="health><a href="health/health.php" ><font class="fa fa-caret-right"> health</font></a></li>
ASKER
ASKER
.caret {
display: inline;
position: relative;
top: 1em;
left: -1.2em;
padding-right: 0;
margin-right: 0;
width: 0;
}
a > .caret {
display: inline-block;
width: 0;
}
ASKER
ASKER
ASKER
ASKER
<!DOCTYPE html>
<!-- demo/temp_mosta.php -->
<!-- https://www.experts-exchange.com/questions/28958689/Putting-a-caret-beside-word-in-li-li.html -->
<html dir="ltr" lang="en-US">
<head>
<meta charset="utf-8" />
<meta name="robots" content="noindex, nofollow" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<style type="text/css">
.caret:after {
content:'\25BC';
color:orange;
font-size:4em;
}
</style>
<title>HTML5 Page in UTF-8 Encoding</title>
</head>
<body>
<a href="#" class="dropdown-toggle" data-toggle="dropdown">Men <span class="caret"></span></a>
</body>
</html>
Outputs something like this.ASKER
HTML (HyperText Markup Language) is the main markup language for creating web pages and other information to be displayed in a web browser, providing both the structure and content for what is sent from a web server through the use of tags. The current implementation of the HTML specification is HTML5.
TRUSTED BY
Directional Icons
http://www.w3schools.com/icons/fontawesome_icons_directional.asp