From 47b8184bbb5784eb373ffbb905c8a1756eba3c6d Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Tue, 17 Jan 2012 23:39:18 -0800 Subject: scope table styles to a class, .table, instead of on the generic element as a smarter default --- docs/base-css.html | 47 +++++++++++++++++++++++++++-------------------- 1 file changed, 27 insertions(+), 20 deletions(-) (limited to 'docs/base-css.html') diff --git a/docs/base-css.html b/docs/base-css.html index 1d64a5787..fa60204a8 100644 --- a/docs/base-css.html +++ b/docs/base-css.html @@ -150,7 +150,7 @@

Emphasis, address, and abbreviation

- +
@@ -237,7 +237,7 @@

Blockquotes

-
Element
+
@@ -383,7 +383,7 @@

Code Inline and block

-
Element
+
@@ -425,7 +425,7 @@

Inline labels for special attention

-
Element
+
@@ -490,7 +490,7 @@

Table markup

-
Labels
+
@@ -579,7 +579,7 @@

Table options

-
Tag
+
@@ -591,6 +591,13 @@ + + + + + @@ -623,14 +630,14 @@

1. Default table styles

-

Tables are automatically styled with only a few borders to ensure readability and maintain structure. No classes are required.

+

Tables are automatically styled with only a few borders to ensure readability and maintain structure. With 2.0, the .table class is required.

-<table>
+<table class="table">
   ...
 </table>
-
Name
Default NoneNo styles, just columns and rows
Basic + .table + Only horizontal lines between rows
+
@@ -670,12 +677,12 @@

Get a little fancy with your tables by adding zebra-striping—just add the .table-striped class.

Note: Sprited tables use the :nth-child CSS selector and is not available in IE7-IE8.

-<table class="table-striped">
+<table class="table table-striped">
   ...
 </table>
-
#
+
@@ -714,12 +721,12 @@

Add borders around the entire table and rounded corners for aesthetic purposes.

-<table class="table-bordered">
+<table class="table table-bordered">
   ...
 </table>
-
#
+
@@ -762,12 +769,12 @@

Make your tables more compact by adding the .table-condensed class to cut table cell padding in half (from 10px to 5px).

-<table class="table-condensed">
+<table class="table table-condensed">
   ...
 </table>
-
#
+
@@ -816,12 +823,12 @@ }); }); </script> -<table class="table-striped"> +<table class="table table-striped"> ... </table>
-
#
+
@@ -858,7 +865,7 @@
#

Styles for the Tablesorter, zebra striping, borders, and condensing may all compound in any variation to fit your needs.

- +
@@ -932,7 +939,7 @@

Four types of forms

Bootstrap provides simple markup and styles for four styles of common web forms.

-
#
+
@@ -1259,7 +1266,7 @@ -
Name
+
-- cgit v1.2.3
Button