Jul 16, 2024 Last Updated 6:38 PM, Jul 16, 2024
  • Tables

    Basic example

    For basic styling—light padding and only horizontal dividers—add the base class .table to any <table>. It may seem super redundant, but given the widespread use of tables for other plugins like calendars and date pickers, we've opted to isolate our custom table styles.

    #First NameLast NameUsername
    1 Mark Otto @mdo
    2 Jacob Thornton @fat
    3 Larry the Bird @twitter
    <table class="table">
     ...
    </table>
    

    Striped rows

    Use .table-striped to add zebra-striping to any table row within the <tbody>.

    Cross-browser compatibility

    Striped tables are styled via the :nth-child CSS selector, which is not available in Internet Explorer 8.

    #First NameLast NameUsername
    1 Mark Otto @mdo
    2 Jacob Thornton @fat
    3 Larry the Bird @twitter
    <table class="table table-striped">
     ...
    </table>
    

    Bordered table

    Add .table-bordered for borders on all sides of the table and cells.

    #First NameLast NameUsername
    1 Mark Otto @mdo
    Mark Otto @TwBootstrap
    2 Jacob Thornton @fat
    3 Larry the Bird @twitter
    <table class="table table-bordered">
     ...
    </table>
    

    Hover rows

    Add .table-hover to enable a hover state on table rows within a <tbody>.

    #First NameLast NameUsername
    1 Mark Otto @mdo
    2 Jacob Thornton @fat
    3 Larry the Bird @twitter
    <table class="table table-hover">
     ...
    </table>
    

    Condensed table

    Add .table-condensed to make tables more compact by cutting cell padding in half.

    #First NameLast NameUsername
    1 Mark Otto @mdo
    2 Jacob Thornton @fat
    3 Larry the Bird @twitter
    <table class="table table-condensed">
     ...
    </table>
    

    Contextual classes

    Use contextual classes to color table rows or individual cells.

    ClassDescription
    .active Applies the hover color to a particular row or cell
    .success Indicates a successful or positive action
    .warning Indicates a warning that might need attention
    .danger Indicates a dangerous or potentially negative action
    #Column headingColumn headingColumn heading
    1 Column content Column content Column content
    2 Column content Column content Column content
    3 Column content Column content Column content
    4 Column content Column content Column content
    5 Column content Column content Column content
    6 Column content Column content Column content
    7 Column content Column content Column content
    <!-- On rows -->
    <tr class="active">...</tr>
    <tr class="success">...</tr>
    <tr class="warning">...</tr>
    <tr class="danger">...</tr>
    
    <!-- On cells (`td` or `th`) -->
    <tr>
      <td class="active">...</td>
      <td class="success">...</td>
      <td class="warning">...</td>
      <td class="danger">...</td>
    </tr>
    

    Responsive tables

    Create responsive tables by wrapping any .table in .table-responsive to make them scroll horizontally up to small devices (under 768px). When viewing on anything larger than 768px wide, you will not see any difference in these tables.

    #Table headingTable headingTable headingTable headingTable headingTable heading
    1 Table cell Table cell Table cell Table cell Table cell Table cell
    2 Table cell Table cell Table cell Table cell Table cell Table cell
    3 Table cell Table cell Table cell Table cell Table cell Table cell
    #Table headingTable headingTable headingTable headingTable headingTable heading
    1 Table cell Table cell Table cell Table cell Table cell Table cell
    2 Table cell Table cell Table cell Table cell Table cell Table cell
    3 Table cell Table cell Table cell Table cell Table cell Table cell
    <div class="table-responsive">
      <table class="table">
       ...
      </table>
    </div>
    
  • Code

    Inline

    Wrap inline snippets of code with <code>.

    For example, <section> should be wrapped as inline.
    For example, <code>&lt;section&gt;</code> should be wrapped as inline.
    

    Basic block

    Use <pre> for multiple lines of code. Be sure to escape any angle brackets in the code for proper rendering.

    <p>Sample text here...</p>
    <pre>&lt;p&gt;Sample text here...&lt;/p&gt;</pre>
    

    You may optionally add the .pre-scrollable class, which will set a max-height of 350px and provide a y-axis scrollbar.

Nuestro semanario. En el que te acercamos el reflejo de las luchas del movimiento obrero, las mujeres y la juventud, además un análisis de los principales hechos de la realidad nacional e internacional.

Es una herramienta fundamental para fortalecer a Izquierda Socialista y al Frente de Izquierda.

La suscripción del periódico impreso nos permite también seguir editándolo, ya que nos financiamos con nuestros propios aportes y del de los suscriptos.

 

Suscribite a la versión Impresa

Más Leídos

Asonada militar frustrada en Bolivia

Asonada militar frustrada en Bolivi…

03 Jul 2024 El Socialista N° 585

Pacto de Mayo en Tucumán / Milei firma “el acta de la dependencia”

Pacto de Mayo en Tucumán / Milei f…

08 Jul 2024 COMUNICADOS DE PRENSA

Después de la Ley Bases / Un gobierno en crisis

Después de la Ley Bases / Un gobie…

03 Jul 2024 El Socialista N° 585

Loan: la desaparición que indigna a un país

Loan: la desaparición que indigna …

03 Jul 2024 El Socialista N° 585