I am encountering an issue with input buttons in Bootstrap. Even after adding !important to the .text-left class, it does not work on buttons.
How can this be resolved?
.text-left {
text-align: left !important;
}
.btn {
box-shadow: none;
border-radius: 0;
}
.w100 {
width: 100%;
}
.btn-default {
color: #333;
background-color: #fff;
border-color: #ccc;
}
.btn {
display: inline-block;
padding: 6px 12px;
margin-bottom: 0;
font-size: 14px;
font-weight: 400;
line-height: 1.42857143;
text-align: center;
white-space: nowrap;
vertical-align: middle;
-ms-touch-action: manipulation;
touch-action: manipulation;
cursor: pointer;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
background-image: none;
border: 1px solid transparent;
border-radius: 4px;
}
* {
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
}
a {
color: #72c02c;
text-decoration: none;
}
a {
color: #337ab7;
text-decoration: none;
}
<link href="https://www.sp-batiment.com/assets/plugins/bootstrap/css/bootstrap.css" rel="stylesheet"/>
<div> <div class="text-left"> <a href="blog/immobilier.html"> <btn class=" btn btn-default w100 "><i class="fa fa-building-o "></i> <strong>Real Estate (4)</strong></btn> </a> <a href="blog/maintenance.html"> <btn class=" btn btn-default w100 "><i class="fa fa-wrench "></i> <strong>Maintenance (2)</strong></btn> </a> <a href="blog/decor-trends.html"> <btn class=" btn btn-default w100 "><i class="fa fa-file-image-o "></i> <strong>Decor Trends (9)</strong></btn> </a> <a href="blog/news.html"> <btn class=" btn btn-default w100 "><i class="fa fa-file-text-o "></i> <strong>News (7)</strong></btn> </a> <a href="blog/technology.html"> <btn class=" btn btn-default w100 "><i class="fa fa-cogs "></i> <strong>Technology (5)</strong></btn> </a> <a href="blog/renovations.html"> <btn class=" btn btn-default w100 "><i class="fa fa-hotel "></i> <strong>Renovations (12)</strong></btn> </a> <a href="blog/various.html"> <btn class=" btn btn-default w100 "><i class="fa fa-puzzle-piece "></i> <strong>Various (7)</strong></btn> </a> <a href="blog/renovation-videos.html"> <btn class=" btn btn-default w100 "><i class="fa fa-film "></i> <strong>Renovation Videos (3)</strong></btn> </a> <a href="blog/energy-improvements.html"> <btn class=" btn btn-default w100 "><i class="fa fa-calculator "></i> <strong>Energy Improvements (3)</strong></btn> </a> </div> </div>
Although this topic has been viewed multiple times, no solution has been found yet.