r/Codecademy • u/siingleton • Aug 25 '15
BestBite bootstrap col-md-offset
The use of bootstrap to offset the text "Browse. Create. Share" isn't working for me in step 2.
Here's the code I'm using for the jumbotron
<div class="jumbotron">
<div class="container">
<div class="row">
<div class="col-md-4">.col-md-4</div>
<div class="col-md-4 col-md-offset-4">Browse. Create. Share</div>
</div>
</div>
</div>The text is displayed, but doesn't appear to be adhering to the columns.
1
Upvotes
2
u/factoradic Moderator Aug 25 '15
If you want to align your column to the right you do not have to use two columns, just increase value of offset.
In the instructions you were asked to add headings to the column.
And to align text in the column to the right just use
text-align.And now you have to style your headings, this is good base: