Im trying to align a material icon with text but its not working. Here's the html im using:
<!DOCTYPE html>
<body scroll="no" style="overflow: hidden">
<html>
<head>
<body>
<link href='https://fonts.googleapis.com/css?family=Inter' rel='stylesheet'>
<link href="https://fonts.googleapis.com/icon?family=Material+Icons+Outlined" rel="stylesheet">
<style>
li {
list-style: none;
display: inline;
text-align: right;
}
a {
text-decoration: none;
text-align: right;
}
enabled {
display: inline;
}
</style>
<style>
.material-icons-outlined.orange600 { color: grey; }
</style>
<style>
.material-icons-outlined.md-36 { font-size: 16px; }
</style>
<li>
<a href="https://" target="_blank"class="material-icons-outlined md-36 orange600">check_box</a>
</li>
<style>
body {
font-family: 'Inter';font-size: 14px;color: black;text-align: left;
}
</style>
<a>Enabled<a>
If someone could help it would be very appreciated. Thanks!
First of all Your HTML and CSS are very bad formatted. Try To improve it. And also You can only use
<li>
should be in<ul>
or<ol>
tag.So your code should look like this
It will align the icon and text property.