From eef1fcde76f407e96ddc4ee7af95eff2b73a8385 Mon Sep 17 00:00:00 2001
From: Mark Otto In the earlier days of Twitter, engineers used almost any library they were familiar with to meet front-end requirements. Bootstrap began as an answer to the challenges that presented and development quickly accelerated during Twitter’s first Hackweek. With the help and feedback of many engineers at Twitter, Bootstrap has grown significantly to encompass not only basic styles, but more elegant and durable front-end design patterns. Read more on dev.twitter.com › Bootstrap is tested and supported in modern browsers like Chrome, Safari, and Firefox. Full support for some versions of Internet Explorer is in the works. Bootstrap comes complete with compiled CSS, uncompiled, and example templates. The default grid system provided as part of Bootstrap is a 940px wide 16-column grid. It’s a flavor of the popular 960 grid system, but without the additional margin/padding on the left and right sides. As shown here, a basic layout can be created with two "columns," each spanning a number of the 16 foundational columns we defined as part of our grid system. See the examples below for more variations. The default grid system provided as part of Bootstrap is a 940px wide 16-column grid. It’s a flavor of the popular 960 grid system, but without the additional margin/padding on the left and right sides. As shown here, a basic layout can be created with two "columns," each spanning a number of the 16 foundational columns we defined as part of our grid system. See the examples below for more variations. A standard typographic hierarchy for structuring your webpages. Nullam quis risus eget urna mollis ornare vel eu leo. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Nullam id dolor id nibh ultricies vehicula ut id elit. You can also add subheadings with the Emphasis tags ( Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus. Maecenas faucibus mollis interdum. Nulla vitae elit libero, a pharetra augue. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus. Maecenas faucibus mollis interdum. Nulla vitae elit libero, a pharetra augue. Note: It’s still okay to use The The Note: Each line in an Note: Each line in an For abbreviations and acronyms, use the For abbreviations and acronyms, use the About Bootstrap Brief history, browser support, and more
+ History
+ Browser support
+
+
+
+ What's included
+
+
+ Grid system Rock the standard 940px or roll your own
-Default grid
- Grid system Rock the standard 940px or roll your own
Example grid markup
- Default grid
+ Example grid markup
+
<div class="row">
<div class="span6 columns">
@@ -103,94 +148,82 @@
</div>
</div>
- Offsetting columns
-Offsetting columns
+ Headings and copy
h1. Heading 1
h2. Heading 2
h3. Heading 3
@@ -264,11 +297,10 @@
h5. Heading 5
h6. Heading 6
Example paragraph
Example headingHas sub-heading…
- <strong> and <em>Example heading Has sub-heading…
When to use
<strong> and <em>) should be used to add visual distinction between a word or phrase and its surrounding copy. Use <strong> for plain old attention and <em> for slick attention and titles.Emphasis in a paragraph
- <b> and <i> tags in HTML5, but they don’t come with inherent styles anymore. <b> is meant to convey importance while <i> is mostly for voice, technical terms, etc.Addresses
- address element is used for contact information for its nearest ancestor, or the entire body of work. Here’s how it looks:<address> element is used for contact information for its nearest ancestor, or the entire body of work. Here’s how it looks:
795 Folsom Ave, Suite 600
San Francisco, CA 94107
P: (123) 456-7890
- address must end with a line-break (<br />) or be wrapped in a block-level tag (e.g., p) to properly structure the content.<address> must end with a line-break (<br />) or be wrapped in a block-level tag (e.g., <p>) to properly structure the content.Abbreviations
- abbr tag (acronym is deprecated in HTML5). Put the shorthand form within the tag and set a title for the complete name.<abbr> tag (<acronym> is deprecated in HTML5). Put the shorthand form within the tag and set a title for the complete name.
Be sure to wrap your blockquote around paragraph and small tags. When citing a source, use the small element. The CSS will automatically preface a name with an em dash (—).
Be sure to wrap your <blockquote> around <p> and <small> tags. When citing a source, use the <small> element. The CSS will automatically preface a name with an em dash (—).
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua…
Dr. Julius Hibbert @@ -321,6 +353,7 @@
<caption>
Tables are great—for a lot of things. Great tables, however, need a bit of markup love to be useful, scalable, and readable (at the code level). Here are a few tips to help.
-Always wrap your column headers in a thead such that hierarchy is thead > tr > th.
Similar to the column headers, all your table’s body content should be wrapped in a tbody so your hierarchy is tbody > tr > td.
Always wrap your column headers in a <thead> such that hierarchy is <thead> > <tr> > <th>.
Similar to the column headers, all your table’s body content should be wrapped in a <tbody> so your hierarchy is <tbody> > <tr> > <td>.
Button styles can be applied to anything with the .btn applied. Typically you’ll want to apply these to only a, button, and select input elements. Here’s how it looks:
Button styles can be applied to anything with the .btn applied. Typically you’ll want to apply these to only <a>, <button>, and select <input> elements. Here’s how it looks:
For buttons that are not active or are disabled by the app for one reason or another, use the disabled state. That’s .disabled for links and :disabled for button elements.
For buttons that are not active or are disabled by the app for one reason or another, use the disabled state. That’s .disabled for links and :disabled for <button> elements.