La Grid de Bootstrap

El sistema de grid de Bootstrap es una de sus características más potentes. Te permite estructurar contenido de manera flexible y responsiva usando contenedores, filas, columnas y algunas opciones adicionales como offset
. Aquí te explico cada componente con ejemplos:
1. Contenedor (container
)
El contenedor es el elemento principal que encapsula el contenido de tu grid. Bootstrap ofrece tres tipos:
.container
: Tiene un ancho fijo y se adapta en función del tamaño de la pantalla..container-fluid
: Ocupa el 100% del ancho de la pantalla..container-{breakpoint}
: Cambia de ancho fijo a fluido dependiendo del punto de quiebre (breakpoint
).
Ejemplo:
html
<div class="container">
Contenido aquí dentro
</div>
<div class="container-fluid">
Contenido fluido
</div>
2. Filas (row
)
Las filas dividen tu diseño horizontalmente y son necesarias para contener las columnas.
Ejemplo:
html
<div class="container">
<div class="row">
<div class="col">Columna 1</div>
<div class="col">Columna 2</div>
</div>
</div>
3. Columnas (col
)
Las columnas dentro de una fila usan un sistema de 12 columnas. Puedes especificar cuántas ocupará cada una con clases como .col-4
o .col-6
.
Ejemplo:
html
<div class="container">
<div class="row">
<div class="col-6">Columna 1 (6 columnas)</div>
<div class="col-6">Columna 2 (6 columnas)</div>
</div>
</div>
4. Columnas dentro de columnas
Puedes anidar columnas colocando filas dentro de columnas.
Ejemplo:
html
<div class="container">
<div class="row">
<div class="col">
<div class="row">
<div class="col-6">Anidado 1</div>
<div class="col-6">Anidado 2</div>
</div>
</div>
<div class="col">Columna separada</div>
</div>
</div>
5. Offset
El offset
agrega espacio en blanco a la izquierda de una columna para centrar o alinear el contenido.
Ejemplo:
html
<div class="container">
<div class="row">
<div class="col-4 offset-4">Columna centrada</div>
</div>
</div>
6. Responsividad
Puedes usar los puntos de quiebre para controlar el diseño en diferentes tamaños de pantalla:
- Extra pequeño (por defecto):
<576px
- Pequeño (
sm
):>=576px
- Mediano (
md
):>=768px
- Grande (
lg
):>=992px
- Extra grande (
xl
):>=1200px
- Extra extra grande (
xxl
):>=1400px
Ejemplo:
html
<div class="container">
<div class="row">
<div class="col-12 col-md-6 col-lg-4">Responsivo 1</div>
<div class="col-12 col-md-6 col-lg-4">Responsivo 2</div>
<div class="col-12 col-md-6 col-lg-4">Responsivo 3</div>
</div>
</div>
7. Gap (espaciado entre filas y columnas)
A partir de Bootstrap 5, puedes usar clases como g-2
para controlar el espacio entre filas y columnas.
Ejemplo:
html
<div class="container">
<div class="row g-3">
<div class="col">Columna 1</div>
<div class="col">Columna 2</div>
</div>
</div>
Con esto tienes una visión completa de cómo usar el sistema de grid en Bootstrap. ¡Adelante, prueba y crea diseños fantásticos!
INUQcY sMiY OYn ZClXlDw
k9pkf6
Trying different slots keeps things fresh, and Super Ace by Jili definitely stands out with its card theme and 1024 ways to win. The wilds and free spins add real depth. Check it out at Super Ace Jili.
Understanding game dynamics is crucial in betting, and platforms like JLJL PH offer tools to analyze trends effectively. Their user-friendly interface and diverse game selection make it easier for bettors to make informed decisions.
It’s so important to be mindful of how gaming fits into a balanced life. Seeing platforms like PH Login focus on mobile experience is great! Check out JiliPH Login for a smoother, more convenient play-but remember to set limits & have fun responsibly! ✨
Lottery trends are fascinating – seeing patterns (or lack thereof!) is key. It’s interesting how platforms like PH987 casino login prioritize user experience; a smooth interface can really enhance enjoyment. Data-driven design is smart! 🤔
Understanding the psychology of gambling reveals how platforms like JLJL PH use immersive design to captivate players. It’s a reminder to play wisely and recognize when it’s time to step back.
Really interesting points! Mastering the basics is so key, especially in iGaming. Building confidence through structured learning, like with 319SuperPH Login, seems like a smart approach. It’s all about gradual progression, right? 🤔
It’s easy to get carried away with online gaming, but building a solid foundation is key. Understanding account security & responsible fund management-like what’s discussed at jljl9 login-can really help. A little education goes a long way! 🤔
That’s a fascinating take on handicapping! Building a solid foundation-like a verified account at a platform such as abc8.a1-seems crucial for long-term success. Strategic registration is key, right? Interesting insights!
Thank you for your sharing. I am worried that I lack creative ideas. It is your article that makes me full of hope. Thank you. But, I have a question, can you help me?
Can you be more specific about the content of your article? After reading it, I still have some doubts. Hope you can help me.
Smart bankroll management is key, even with innovative platforms! Seeing tech like predictive analytics at PH365 Casino Login is interesting-could personalize the experience, but stay cautious! It’s still gambling, after all.
Great article! For those looking to streamline their workflow, checking out AI Business Solutions could be a game-changer with its curated list of tools.
Roulette’s seemingly random nature hides fascinating probability! Thinking about systems & edge… reminds me of platforms like jkboss, where streamlined access & security are key to enjoying the game. A smooth login is half the battle!
Solid article! Thinking about bankroll management is huge in tournaments. Seeing platforms like 13wim club offer easy Vietnamese payment options makes getting in the game simpler, letting you focus on strategy! Definitely a plus.
Understanding gambling psychology helps highlight how platforms like JLJL PH use engaging interfaces to keep players interested, especially with games like Fortune Master and Lucky Spin.
It’s fascinating how platforms like JiliBoss are leaning into data – really changes the game! Understanding volatility, even in fun fishing games, impacts choices. Exploring jiliboss games might help players approach things more strategically, especially with KYC procedures now standard.
Really insightful article! Security is HUGE when choosing online casinos, and it’s good to see platforms prioritizing that. Checking for legit status is key – like with 68wim games, strong encryption matters! Great points about safe logins too.
That’s a bold prediction – really interesting to see how this plays out! Considering the focus on secure platforms like ph958 games offer, player confidence is key. Good analysis overall!
64vn3k
Thank you, your article surprised me, there is such an excellent point of view. Thank you for sharing, I learned a lot.
Thanks for sharing. I read many of your blog posts, cool, your blog is very good.