With my current code, the "test" paragraph is spanning the entire page. I would like the width to wrap the text, (width:auto)
, however that's not working. This element is meant to be a button in the center of the page. I'm using the Bootstrap 3.0 Grid system, by the way.
HTML:
<body>
<div class="container-fluid" id="FullContainer">
<!-- Cover Page -->
<div class="row" id="CoverPageRow">
<div class="col-xs-12", id="HeaderText"> Mastery Wireframe </div>
<div class="col-xs-12", id="SubHeaderText"> Become a master at what you do. </div>
<div class="col-xs-12", id="DiscoverMoreButton"> <p id="test"> Discover More </p></div>
</div>
</div>
</body>
CSS:
.col-md-12 {
height: auto;
color: white;
text-align: center;
font-size: 200%;
}
#test {
background-color: blue;
border: 1px white solid;
width: auto;
}
So how do I get the width to set to auto, so that this button doesn't span the entire page?
The really quick answer is use
.text-center
Example: