I am trying to align my buttons to the center of the mobile screen when the screen size gets small, tried setting text-align to center but that doesn't seem to work.
It must be something with the pull left / text right bootstrap class im trying to override, just not too sure what I am missing.
CSS:
@media screen and (max-width: 998px) {
@font-face{
font-family: 'Gotham';
src: url("assets/fonts/Gotham-Bold.otf");
src: url("assets/fonts/Gotham-Light.otf");
}
@font-face {
font-family: "Gotham-Bold";
src: url("assets/fonts/Gotham-Bold.otf");
font-weight: Bold;
}
@font-face {
font-family: "Gotham-Light";
src: url("assets/fonts/Gotham-Light.otf");
font-weight: Light;
}
.col-md-4.pull-left.text-right{
position: relative;
text-align: center;
}
.
.
.
HTML:
<div class="container-fluid">
<div class="row">
<div class="col-sm-8 pull-right text-left" >
<div class="IMGpadding"></div><br>
<img style="float:left" class="img-responsive" src = "assets/images/white-leaf-bg.jpg" id="frame"/>
</div>
<div class="col-md-4 pull-left text-right" >
<div class="h1padding"></div>
<a style="float:right" class = "h1" href="" id="introID"><b>INTRO</b></a>
<div class="h1padding"></div>
<a style="float:right" class = "h1" href="" id="OnSuerfaceID"><b>ON THE</b> <span class="light">SURFACE</span></a>
<div class="h1padding"></div>
<a style="float:right" href="" id="FromOilID"><b>FROM</b> <span class="light">ORE TO OIL</span></a>
<div class="h1padding"></div>
<a style="float:right" href="" id="EnvImpactID"><b>ENVIRONMENTAL</b> <span class="light">CARE</span></a>
<div class="h1padding"></div>
<a style="float:right" class = "h1" href="" id="MoreThanGasID"><b>MUCH MORE THAN</b> <span class="light">GASOLINE</span></a>
<div class="h1padding"></div>
<a style="float:right" class = "h1" href="" id="OneMoreID"><b>ONE MORE</b> <span class="light">THING</span></a>
</div>
</div>
</div>
Thanks in advance, I am still very much a noob at bootstrap.