This is my code i need to center the icon with inline css:
<div class="small-4 medium-4 large-4 columns">
<i class="fa fa-check-square-o fa-lg"></i>
</div>
If you are using bootstrap you should only add text-center
class
<div class="small-4 medium-4 large-4 columns text-center">
<i class="fa fa-check-square-o fa-lg"></i>
</div>
Else you can add this inline css to your parent div
text-align: center
So it will be :
<div style="text-align: center" class="small-4 medium-4 large-4 columns">
<i class="fa fa-check-square-o fa-lg"></i>
</div>
Give the width to the container div of icon and give text-align:center
to that div
<html>
<head>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.0/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
</head>
<div style="width:100%;text-align:center" class="small-4 medium-4 large-4 columns">
<i class="fa fa-check-square-o fa-lg"></i>
</div><body>
</body>
</html>
text-center
class to container div