.codrops-top {
line-height: 30px;
font-size: 13px;
background: #fff;
background: rgba(255, 255, 255, 0.8);
text-transform: uppercase;
z-index: 9999;
position: absolute;
width: 100%;
top: 0;
left: 0;
font-family: Cambria, Georgia, serif;
box-shadow: 1px 0px 2px rgba(0,0,0,0.2);
font-weight: 900;
}
.codrops-top a {
padding: 0px 10px;
letter-spacing: 1px;
color: #333;
display: inline-block;
text-decoration: none;
}
.codrops-top a:hover {
color:#12836d;
cursor:pointer;
text-decoration: none;
}
.codrops-top span.right{
float: right;
}
.codrops-top a{
color:black;
}
.fa{
padding:0 5px;
}
.codrops-top span a.btn {
padding: 9px 38px;
line-height: 20px;
}
.codrops-top span a.btn-primary {
color: #fff;
background-color: #5bbc2e;
border-color: #5bbc2e;
}
@media only screen and (max-width: 767px){
.codrops-top{
text-align: center;
}
.codrops-top span.right{
text-align: center;
float:none;
}
}
@media screen and (min-width: 1338px){
.largeScreen {width:100%;text-align:center;}
.largeScreen span {display:inline-block;}
.hide{
display: none;
}
}
<div class="codrops-top">
<div class="container-fluid">
<div class="row">
<div class="col-lg-12">
<div class="col-lg-3 col-md-3 col-sm-3 hide">
<a href="">
<strong>Your Tech Friend </strong><span><i class="fa fa-mobile"></i></span>+91-8510-808-808
</a>
</div>
<div style="text-align:center;" class="col-lg-6 col-md-6 col-sm-6 hide">
<a href="">
<strong><span><i class="fa fa-book"></i></span>Blog</strong>
</a>
<a href="">
<strong><span><i class="fa fa-trophy"></i></span>Career</strong>
</a>
<a href="">
<strong><span><i class="fa fa-sitemap"></i></span>Site Map</strong>
</a>
<a href="">
<strong><span><i class="fa fa-rocket"></i></span>Request a Quote</strong>
</a>
</div>
<div class="col-lg-3 col-md-3 col-sm-3 largeScreen">
<span class="right">
<a href="">
<a href="#" class="btn btn-primary">Client Area</a>
</a>
</span>
</div>
</div>
</div>
</div>
</div>
When trying to center the client area button on a 1338px screen size, it remains positioned on the left side instead of being in the center as desired.