Saltar al contenido

ejemplo de código de clases bootstrap css

Esta es la contestación más correcta que encomtrarás brindar, pero obsérvala pausadamente y analiza si se adapta a tu proyecto.

Ejemplo 1: bootstrap css

<linkhref="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css"rel="stylesheet"integrity="sha384-wEmeIV1mKuiNpC+IOBjI7aAzPcEZeedi5yW5f2yOq55WWLwNGmvvx4Um1vskeMj0"crossorigin="anonymous">

Ejemplo 2: desplazamiento de bootstrap 3

col-sm-offset-2

Ejemplo 3: bootstrap Responsive

Responsive containers are new in Bootstrap v4.4. They allow you to specify a class that is 100% wide until the specified breakpoint is reached, after which we apply max-widths for each of the higher breakpoints. For example, .container-sm is 100% wide to start until the sm breakpoint is reached, where it will scale up with md, lg, and xl.

Copy
<divclass="container-sm">100% wide until small breakpointdiv><divclass="container-md">100% wide until medium breakpointdiv><divclass="container-lg">100% wide until large breakpointdiv><divclass="container-xl">100% wide until extra large breakpointdiv>


// Extra small devices (portrait phones, less than 576px)
// No media query for `xs` since this is the default in Bootstrap

// Small devices (landscape phones, 576px and up)
@media (min-width: 576px)  ... 

// Medium devices (tablets, 768px and up)
@media (min-width: 768px)  ... 

// Large devices (desktops, 992px and up)
@media (min-width: 992px)  ... 

// Extra large devices (large desktops, 1200px and up)
@media (min-width: 1200px)  ... 


Since we write our source CSS in Sass, all our media queries are available via Sass mixins:

// No media query necessary for xs breakpoint as it's effectively `@media (min-width: 0)  ... `
@include media-breakpoint-up(sm)  ... 
@include media-breakpoint-up(md)  ... 
@include media-breakpoint-up(lg)  ... 
@include media-breakpoint-up(xl)  ... 

// Example: Hide starting at `min-width: 0`, and then show at the `sm` breakpoint
.custom-class 
  display: none;

@include media-breakpoint-up(sm) 
  .custom-class 
    display: block;
  

We occasionally use media queries that go in the other direction (the given screen size or smaller):

// Extra small devices (portrait phones, less than 576px)
@media (max-width: 575.98px)  ... 

// Small devices (landscape phones, less than 768px)
@media (max-width: 767.98px)  ... 

// Medium devices (tablets, less than 992px)
@media (max-width: 991.98px)  ... 

// Large devices (desktops, less than 1200px)
@media (max-width: 1199.98px)  ... 

// Extra large devices (large desktops)
// No media query since the extra-large breakpoint has no upper bound on its width


Once again, these media queries are also available via Sass mixins:

Copy
@include media-breakpoint-down(xs)  ... 
@include media-breakpoint-down(sm)  ... 
@include media-breakpoint-down(md)  ... 
@include media-breakpoint-down(lg)  ... 
// No media query necessary for xl breakpoint as it has no upper bound on its width

// Example: Style from medium breakpoint and down
@include media-breakpoint-down(md) 
  .custom-class 
    display: block;
  


$zindex-dropdown:          1000 !default;
$zindex-sticky:            1020 !default;
$zindex-fixed:             1030 !default;
$zindex-modal-backdrop:    1040 !default;
$zindex-modal:             1050 !default;
$zindex-popover:           1060 !default;
$zindex-tooltip:           1070 !default;

Ejemplo 4: ancho del contenedor bootstrap

--------------------------------------------------------------------------------------
Bootstrap Container Width			 					| Size        | Class Prefix
--------------------------------------------------------------------------------------
Extra small devices Phones (less than 768px)  			| None (auto) | .col-xs-
Small devices Tablets (greater than equals 768px) 		| 750px       | .col-sm-
Medium devices Desktops (greater than equals 992px)     | 970px       | .col-md-
Large devices Desktops (greater than equals 1200px)     | 1170px      | .col-lg-

Ejemplo 5: bootstrap css

<linkhref="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css"rel="stylesheet"integrity="sha384-+0n0xVW2eSR5OomGNYDnhzAbDsOXxcvSN1TPprVMTNDbiYZCxYbOOl7+AMvyTG2x"crossorigin="anonymous">

valoraciones y reseñas

Recuerda compartir esta reseña si te ayudó.

¡Haz clic para puntuar esta entrada!
(Votos: 0 Promedio: 0)



Utiliza Nuestro Buscador

Deja una respuesta

Tu dirección de correo electrónico no será publicada. Los campos obligatorios están marcados con *