Twitter Bootstrap. Agenda What is it? Grids and Fluid layouts Globals and Typography Tables, Forms and Buttons Navigation Media and thumbnails Responsive.

Slides:



Advertisements
Similar presentations
Chapter 3 – Web Design Tables & Page Layout
Advertisements

JQuery Mobile. Benefits Required links Remember that we need to add the links to the head, in this order.
1 Cascading Style Sheets Continued Different kinds of selectors in a style sheet –Simple- Pseudo-Class –Contextual- Pseudo-Element –Class Image Styles.
Cascading Style Sheets
Programming Club IIT Kanpur. Work environment Before you begin coding,always set up your work environment to your needs IDE Notepad++ Sublime Text 2.
Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 Chapter 6 Key Concepts 1 Copyright © Terry Felke-Morris.
Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 Chapter 6 Key Concepts 1 Copyright © Terry Felke-Morris.
Slide 1 CMPS 211 Internet Programming Spring 2008 Dynamic Effects with Styles Chapter 12 2/6/08.
Very quick intro HTML and CSS. Sample html A Web Title.
Cascading Style Sheets. CSS stands for Cascading Style Sheets and is a simple styling language which allows attaching style to HTML elements. CSS is a.
User Interface Design using jQuery Mobile CIS 136 Building Mobile Apps 1.
CSS Menus and Rollovers. Agenda foil Separating style from content 3 pages in one file Rollovers in CSS Horizontal drop-downs Vertical drop-downs.
Principles of Web Design 5 th Edition Chapter Nine Site Navigation.
SM5312 week 11: CSS Menus & Navigation Bars1 An Introduction to Cascading Style Sheets CSS Menus and Navigation Bars Nick Foxall.
Advance CSS (Menu and Layout) Miftahul Huda. CSS Navigation MENU It's truly remarkable what can be achieved through CSS, especially with navigation menus.
CIS 1310 – HTML & CSS 6 Layout. CIS 1310 – HTML & CSS Learning Outcomes  Describe & Apply the CSS Box Model  Configure Float with CSS  Designate Positioning.
Web Pages and Style Sheets Bert Wachsmuth. HTML versus XHTML XHTML is a stricter version of HTML: HTML + stricter rules = XHTML. XHTML Rule violations:
กระบวนวิชา CSS. What is CSS? CSS stands for Cascading Style Sheets Styles define how to display HTML elements Styles were added to HTML 4.0 to.
Class four: the box model and positioning. is an HTML tag which allows you to create an element out of inline text. It doesn’t mean anything! try it:
Unit 20 - Client Side Customisation of Web Pages
Intermediate Level Course. Text Format The text styles, bold, italics, underlining, superscript and subscript, can be easily added to selected text. Text.
HTML Tables and Forms Creating Web Pages with HTML CIS 133 Web Programming Concepts 1.
CSS (Cascading Style Sheets): How the web is styled Create Rules that specify how the content of an HTML Element should appear. CSS controls how your web.
1 The Structure of a Web Table beginning of the table structure first row of three in the table end of the table structure table cells You do not need.
Chapter 9 Collecting Data with Forms. A form on a web page consists of form objects such as text boxes or radio buttons into which users type information.
Tutorial 6 Creating Tables and CSS Layouts. Objectives Session 6.1 – Create a data table to display and organize data – Modify table properties and layout.
CONCEPTS FOR FLUID LAYOUT Web Page Layout. Website Layouts Most websites have organized their content in multiple columns (formatted like a magazine or.
HTML. Basic HTML HTML document – HTML headings – to HTML paragraphs – HTML links – HTML images –
CHAPTER 10 Formatting Tables and Forms. Using Tables the Right Way  HTML and XHTML have a LOT of tags dedicated to building a table  If you have only.
Responsive design - Bedrock to our site Responsive site templates included.
 Word doc for you to download › Link at the beginning of class › 10 Questions › Answers to be added inline  Post to Sakai when completed › No resubmits.
 Remember that HTML is just text  Need to point to pictures  Use the img tag  alt: › screen reader › REQUIRED for this class and to validate.
Frontend - HTML5 - CSS3 - Bootstrap 3.x. SemanticsPerformanceCSS3.
CHAPTER 5 Working with Data Tables and Inline Frames.
User Interface Components Lecture # 5 From: interface-elements.html.
General “Search” or “Find” vs “Manage” “Edit” has no second level tab. is always under the “Create” tab “Create” or “Add” – need consistency Clickable.
Bootstrap by:- Vignesh Dhamodaran. What is Bootstrap? Originally created by a designer and a developer at Twitter. So initial name is Twitter Bootstrap.
CONTROLLING Page layout
Bootstrap Front-End Framework for Responsive Web Sites Svetlin Nakov Technical Trainer Software University
20-753: Fundamentals of Web Programming 1 Lecture 6: Advanced HTML Fundamentals of Web Programming Lecture 6: Advanced HTML.
Positioning Objects with CSS and Tables
Button groups Buttons dropdowns Action Pagination Pager Inline labels DEFAULT INFO SUCCESSWARNINGIMPORTANT Action 10 OlderNewer NextPrevious
Understanding CSS Cascading Style Sheets control the presentation of content in HTML pages Style Sheets separate formatting from the content –Styles defined.
 Add one element at a time  If it doesn’t do what you want, › Delete it › DON’T just keep piling on more items.
Fundamentals of Web DevelopmentRandy Connolly and Ricardo Hoar Textbook to be published by Pearson Ed in early Bootstrap.
Header, Footer, and Navigation toolbars CIS 136 Building Mobile Apps 1.
TWITTER BOOTSTRAP Rick Mason. All houses were custom built on site.
Chapter 4 Bootstrap. Content Bootstrap with CSS Bootstrap Layout Components Bootstrap Plugins.
CSS.
What’s New in Bootstrap v4
Bootstrap KS Technologies.
CSCI 1720 W3.CSS – Part 1 East Tennessee State University Department of Computing CSCI 1720 Intermediate Web Design.
CNIT131 Internet Basics & Beginning HTML
PHP MySQL Crash Course with HTML CSS
CSS Bootstrap.
Front-End Framework for Responsive Web Sites
User Interface Components
User Interface Design and Usability Bootstrap
Creating a Baseline Grid
CS3220 Web and Internet Programming Introduction to Bootstrap
Chapter 7 Page Layout Basics Key Concepts
6 Layout.
IBM Kenexa BrassRing on Cloud Responsive Apply: Visual Branding Tool
Bootstrap Components Reusable components built to provide iconography, dropdowns, input groups, navigation, alerts, and much more.
Fixed Positioning.
Web Development & Design Foundations with H T M L 5
CS3220 Web and Internet Programming Introduction to Bootstrap
Web Page Layout Imran Rashid CTO at ManiWeber Technologies.
Multipage Sites.
Bootstrap/WebFlow Web development of the future
Presentation transcript:

Twitter Bootstrap

Agenda What is it? Grids and Fluid layouts Globals and Typography Tables, Forms and Buttons Navigation Media and thumbnails Responsive JavaScript plugins

What is Twitter Bootstrap CSS framework Makes creating layouts easier Commonly used set of classes Responsive JavaScript components for UI

Grid and layouts Based on a 12 column grid system – Divisible by 2 and 3 Easy to create things that line up Fixed or fluid containers and fixed or fluid rows Recommendation: Always use fluid rows! – helps when extracting partials to place in modals (more later) – fixed containers are fine for forms Important and tricky! – In fixed: number of columns in nested rows should add up to the number of columns of its parent. – In fluid: number of columns in nested rows should always add up to 12

Global reset Do a reset via normalize.css Remove margin on the body Set background-color: white; on the body attributes as our typographic base Set the global link color and apply link underlines only on :hover

Typography font-size is 14px, with a line-height of 20px Use normal headers, b, strong, i, p, etc..lead class.text-left,.text-center,.text-right.text-warning,.text-error,.text-info,.text-success abbr, address, blockquote ul (.unstyled and.inline) dl, dt, dd (.dl-horizontal) code, pre (.pre-scrollable)

Tables For add a “table” class (.table) – Combine with: –.table-striped,.table-bordered,.table-hover,.table-condensed Supports, and s can add –.warning,.error,.info,.success

Forms By default: left-aligned labels on top of form controls Supports – bold with an underline.form-inline (to stack horizontally).form-horizontal (for rows) –.control-group (like row but with more padding) – labels need.control-label (I don’t like this) – align with.controls or.form-actions for buttons Can use.warning,.error,.info,.success on.control-group to change the label, input, and possible help/error

Input Surround input with for checkbox/radio – Default for checkbox is vertically stacked Can apply.inline class to stack horizontally Selects actually look pretty by default – also supports multiple attribute.search-query for type=“text” for round Can a wrapper with.input-prepend and.input-append to stick to inputs – spans need.add-on for styling Can size them in a number of ways –.input-block-level, input sizing, grid sizing Can use a span with.uneditable-input Use span with.help-inline for help next to controls Supports disabled, required, pattern, etc.

Buttons Having clear nice looking buttons greatly increases the usability of your web site Can size them in a number of ways –.btn-block,.btn-large,.btn-small,.btn-mini, grid sizing Can be applied to,, or

Dropdowns Drop downs are like context menus To use dropdowns need JavaScript plugins (more next) Action Another action Separated link More options...

Plugins Can be included individually or all at once – some have required dependencies bootstrap.js and bootstrap.min.js contain all plugins in a single file. Plugins can be used purely through data-markup – without writing any JavaScript (with a couple of exceptions) Or without any markup and solely from JavaScript

Button groups Can combine sets of.btn-group into a.btn-toolbar Can also be toggled via JavaScript plugin – data-toggle=“buttons-checkbox” – data-toggle=“buttons-radio”

Navigation There are three ways of displaying nav – Tabs – Pills – Lists – Tabs can be tabbed in any direction

Navbars Can create a navbar using a couple of divs –.navbar, and.navbar-inner – supports.brand and ul with basic.nav – supports form elements and drop downs – can.pull-left and.pull-right elements – can add.navbar-fixed-top so it stays at the top (or bottom) – navbars can be responsive – can support inverse color

Breadcrumbs and pagination Breadcrumbs by adding.breadcrumb to a – use.divider to separate the links Surround the with a For both use.disabled for un-clickable links and.active to indicate current Can move around with.pagination-center and.pagination- right Add a.pager class to a to make previous and next buttons

Labels, Badges, and Progress

Heroes Hero-unit – jumbo-tron style component for showcasing key content – synonymous with Bootstrap at this point

Thumbnails Grids of images, video or text

Alerts When you need to let the user know some message – but you want them to be able to close it Can use data-dismiss=“ ” to allow closing

Modals Dialog boxes – create with.model and.hide – href needs to refer to its id – data-toggle to launch and data-dismss to close Launch modal × Modal header One fine body… Close Save changes

Tooltips and Popovers Both require a little JavaScript to turn on

Other Controls Accordion / Collapse – To allow viewing a single section in multiple sections of content Carousel – To view a collection of images – Requires a line of JavaScript $(“#mycarousel”).carousel() to autostart Typeahead – input but allows autocomplete Affix – Like a sideway intra-page navigation system that auto-updates

Responsive Additional style sheet needed – Requires you to make decisions about what to see in the various environments Use classes to turn on for specific or hide for specific environments –.visible-phone,.visible-tablet,.visible-desktop –.hidden-phone,.hidden-tablet,.hidden-desktop Can place sections of navbar in.nav-collapse

Summary Use bootstrap to make your web pages look nice – for demos – while you wait for designers Provide many of the most commonly used “controls” – which conform to the same styles Lavish Bootstrap to customize colors