Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Jumbotron Alignment Issues

I'm currently using the latest release of bootstrap 3.0.0

The issue is simple. In the jumbotron container I use how do i center align the text with the logo

I've been playing for hours, with col-md-* and with little luck.

In bootstrap 2.3.2 I achieved the effect of centering everything in hero by using .text-center and .pagination center (for the image?? - it worked)

http://jsfiddle.net/zMSua/

This fiddle shows the text and image im trying to center with bootstrap 3.0.0

like image 690
scriptmonkey Avatar asked Sep 09 '13 20:09

scriptmonkey


People also ask

How do I center the contents of a jumbotron?

add auto to your margin attribute in jumbotron (so it's margin: 10px auto; instead of margin:10px. That should solve it. If you're using the grid system, then centering your jumbotron should just be a matter of col-lg-offset-x, where x is 12-{width of jumbotron} divided by 2.

Why was jumbotron removed from Bootstrap?

Jumbotron is a lightweight grey box for displaying the key contents of the websites. It increases the size of the contents. The previous version of Bootstrap 4 had a separate class to create a Jumbotron. But it has been removed in Bootstrap 5 as it can be created using classes of Bootstrap 5.

What happened jumbotron Bootstrap?

In Bootstrap 5 the jumbotron component is removed in favor of utility classes like . bg-light for the background color and . p-* classes to control padding.

Does Bootstrap 5 support jumbotron?

In Bootstrap 3, a jumbotron was introduced as a large, padded box for highlighting special content or information. Now, jumbotrons do not support in Bootstrap 5 version. We can achieve the same result with an <div> element, special helper classes, and a color class.


1 Answers

why not offset the grid?

like this:

<div class="jumbotron">
      <div class="container">
        <div class="row well well-lg">
            <div class="col-md-6 col-md-offset-3">
                <h1 class="">Home of the</h1>
                <div class="">
                    <img src="http://www.harrogatepoker.co.uk/profile/HPL%20V%20Logo%20%20Revised%20and%20Further%20reduced.jpg" class="img-responsive text-center" />
                </div>
                <h2 class="">"All In", Fun!</h2>
            </div>
        </div>
      </div>

bootstrap has a 12 column grid if your main column has 6, you can offset it 3 and will leave you with:

3 columns 6 (main container) and 3 columns

like image 194
Rodrigo Zurek Avatar answered Sep 19 '22 12:09

Rodrigo Zurek