SlideShare a Scribd company logo
1 of 64
DevChat #1
Intro to Twitter Bootstrap:
A Crash Course on Web Development for Noobs
Ahmed Haque
PhD Candidate – Rice Bioengineering
afhaque@rice.edu
Jan 24. 2015 | Duncan 1046
Introduction
Learning is Frustrating
“You can’t tell whether you’re learning something when
you’re learning it—in fact, learning feels a lot more
like frustration.
What I’ve learned is that during this period of frustration is
actually when people improve the most, and their
improvements are usually obvious to an outsider. If you
feel frustrated while trying to understand new concepts, try
to remember that it might not feel like it, but you’re probably
rapidly expanding your knowledge.”
Phillip Dickey, Author of Write Modern Web Apps with the MEAN Stack: Mongo,
Express, AngularJS, and Node.JS
Agenda
I. Introduction
II. A Primer on HTML / CSS
III. Behold! Bootstrap
IV. Sketching / Grid Layouts
V. Key Bootstrap Parts
VI. Time to Build!
i. Translating Sketch into “Rows, Columns, and Containers”
ii. Initializing Project
iii. Building a Navbar
iv. Adding Images
v. Adding Tables
vi. Adding Forms
vii. Formatting the Look
What to Takeaway!
If you’re a…
• Total Beginner to Coding:
– Walk away with an understanding of what HTML/CSS is, how it
works, and where Bootstrap fits in.
– Understanding grid layouts would be good too!
• Coded Before, New to Web:
– Walk away understanding how to translate a grid layout into
HTML/CSS using Bootstrap “rows, columns, and containers ”.
– Also, understand how to use the Bootstrap documentation to
“pick and place” resources as necessary.
• HTML/CSS Fiddler:
– Learn tricks to develop more systematically
– Gain the confidence to build your own site from scratch!
How to Keep Up!
As we go through this workshop…
Feel encouraged to ask your neighbors for help. It’s
the fastest way to get help
If no one around you knows the answer – feel free to
stop me and ask!
(We can Google it together )
A Primer on HTML/CSS
HTML / CSS Definitions (*yawn* unimportant)
• HTML: Hypertext Markup Language – (Content)
• CSS: Cascading Style Sheets – (Appearance)
• HTML/CSS are the “languages of the web”. Together they
define both the content and the aesthetics of a webpage –
handling everything from the layouts, colors, fonts, and
content placement. (Javascript is the third – handling logic, animation, etc.)
Basic HTML Example
Headers
Webpage Title
Image / Text
Links / List
Key HTML Tags
Headers:
• <h1> </h1> - Header 1 (Largest Header)
• <h2> </h2> - Header 2 (Next Largest Header)
• <h3> </h3> - Header 3
• …
Containers:
• <html> </html> - Wraps the entire page
• <body> </body> - Wraps the main content
• <div> </div> - Logical Container ***
• <p> </p> - Wraps individual Paragraphs
• Others:
• <img> (images), <a href> (links), <li> (list items) , <head> (top
content), <script> (javascript), etc…
Basic HTML Example
Basic HTML Example
Hella boring.
Enter CSS!
Our basic website after css…
CSS Selectors: “Classes” and “IDs”
• CSS works by “hooking” onto selectors added into
HTML using “selectors, classes, and identifiers”.
• In order to use classes we simply add
“class=className” or “id=IDName” into the HTML tag.
• We then create a correlating class style (.className) or
id style (#IDName) in the CSS file.
CSS Selector Example
CSS works by “hooking” onto selectors added into HTML. (Like highlighting)
In the below example the “Header” would be turned blue and MUCH larger,
because of the CSS.
Example (HTML):
<p class=“bigBlue”>Header</p>
Example (CSS):
.bigBlue
{
font-size: 100px;
color: blue;
}
Key CSS Attributes
Font / Color:
• color: Sets color of text
• font-size: Sets size of the font
• font-style: Sets italics
• font-weight: Sets bold
Alignment / Spacing:
• margin-top(bottom/left/right): Adds space between element and
its own border.
• margin-top (bottom/left/right): Adds space between element and
surrounding elements.
• float: Forces elements to the sides, centers, or tops
Background:
• background-color: sets background color
• background-image: sets background image
Our basic website after css…
Still boring…
but better!
HTML / CSS Analogy
HTML Alone
• Like writing papers in
“Notepad”.
• Can only write
unformatted text.
HTML / CSS
• Like writing papers in
Microsoft Word.
• Can format text, page
settings, alignment, etc.
based on “highlighting”
and menu options.
Powerful Duo
Believe it or not… HTML / CSS is all you need to
develop a full-blown rich looking website.
Powerful Duo
Believe it or not… HTML / CSS is all you need to
develop a full-blown rich looking website.
But this would totally suck.
Behold! Bootstrap
Bootstrap Definition
• Twitter Bootstrap is a free collection of tools for
creating websites and web applications.
• It comes with a pre-built design template for typography,
forms, buttons, navigation, UI elements, and javascript.
• Documentation here: http://getbootstrap.com/
Why Use Bootstrap? (#1)
• Reason #1: UI Kit
• Familiarize yourself
with the UI features it
offers via the
documentation.
• Once Bootstrap is
active, you can simply
copy snippets from
the documentation to
save yourself major
time of creating
elements yourself.
Why Use Bootstrap? (#2)
Reason #2: Mobile Responsiveness
• One of the most compelling reasons to use Bootstrap is the
default mobile-responsive quality it provides.
• This means that your website will look “good” automatically
when viewed on screens ranging from monitors to tablets to
phones. Visit www.ricedevchats.org for an example.
HTML / CSS / Bootstrap Analogy
HTML Alone
• Like writing papers in
“Notepad”.
• Can only write
unformatted text.
HTML / CSS
• Like writing papers in
Microsoft Word.
• Can format text, page
settings, alignment, etc.
based on “highlighting”
and menu options.
HTML / CSS &
Bootstrap
• Like writing papers in
Microsoft Word with a
prebuilt template.
• You can still customize,
but now have a pre-built
style and aesthetic look.
Our basic website with Bootstrap…
Hot
Damn!
Sketching / Grid Layouts
Importance of Sketches
• Because every aspect of a
site’s “look” is defined by
HTML/CSS – it is crucial to
have a detailed sketch going in.
• Pay particular attention to the
location of navigation bars,
titles, headers, content, images,
footers etc.
• When imagining alignments, in
particular, be mindful of the grid
Designing with a Grid in Mind
• Grids serve to align elements aesthetically.
Facebook’s Grid
Facebook is a
perfect example of
a website where
the “grid-layout” is
obvious.
Grids make it easy
to have content
(text, images, and
regions) align
aesthetically.
A More Complex Grid…
A More Complex Grid…
Tools for Sketch / Grid Creation
Wireframing Tools:
• Balsamiq***: https://balsamiq.com/
• Framebox: http://framebox.org/
• Pen and Paper: Your notebook
Grids for Photoshop / Illustrator:
• 960 GS: http://960.gs/
• GuideGuide: http://framebox.org/
Designing with Grids Guides:
• 960 Grid System Made Easy: http://bit.ly/1sjYaFC
• Design by Grid: http://www.designbygrid.com/
• Designing with Grid-Based Approach: http://bit.ly/1CM4Hzo
Key Bootstrap Parts
Bootstrap Guide
• Bootstrap offers a wide range of components for inclusion in your next
web project. Best way to use them is to simply flip through the
documentation and incorporate elements as necessary.
Incorporating Bootstrap
To add Bootstrap styling to your web project simply incorporate the CDN
reference in the header section of your HTML.
Example:
<link rel="stylesheet“
href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.2/css/bootstrap.min.css ">
Bootstrap Grid System
Bootstrap lets you
organize content based
on the “number of
columns” a div spans –
out of a total 12 columns.
Example:
<div class="col-md-12">
(Spans full width)
<div class="col-md-4">
(Spans 1/3 of full width)
Bootstrap Typography
• By default, Bootstrap offers nice looking fonts / size ratios of headers
and paragraphs. These come without you needing to do anything!
• <p></p>, <h1></h1>, <h2></h2, etc
Bootstrap Buttons
Bootstrap also helps you quickly create buttons of various size/colors
Example:
<button class="btn btn-default" type="submit">Button</button>
Bootstrap Navbar
Bootstrap Jumbotron
Bootstrap Glyphicons
Example:
<span class="glyphicon glyphicon-certificate"></span>
Bootstrap Tables
Example:
<table class="table table-striped">
<tr>
<th>First Name</th>
<th>Last Name</th>
<th>Username</th>
</tr>
<tr>
<td>Mark</td>
<td>Otto</td>
</td>@mdo</td>
</tr>
…
</table>
Bootstrap Forms
Time to Build!
See Code Base:
https://github.com/afhaque/Rice-DevChats-Bootstrap
Start at Commit: 4342549ace9f99684b4192ea5c983b11624c6277
Go to Commit: 62a29269d29d264536ccff4ab707d44493480da7
Step 1: Grab Initializer
Step 2: Examine Sketch
Step 3: Grab Swatches / Background Imgs
Step 4: Page Title / Menu Items
Step 5: About Skeleton
Step 6: Other Skeletons
Step 9: Placeholder Images
Step 10: Glyphicons
Step 11: Tables!
Step 12: Google Maps
Step 13: Navigation Anchors
Step 14: Background / Aesthetics
Step 14: Scrolling Navbar
Step 15: Jumbotron Color
Step 16: Modal!
Step 17: Fin!
Questions?
Liked it? Hated it? Let us know:
ricedevchats.org/reviews
Thanks for attending!

More Related Content

What's hot

Bootstrap 4 Tutorial PDF for Beginners - Learn Step by Step
Bootstrap 4 Tutorial PDF for Beginners - Learn Step by StepBootstrap 4 Tutorial PDF for Beginners - Learn Step by Step
Bootstrap 4 Tutorial PDF for Beginners - Learn Step by StepBootstrap Creative
 
A beginner's guide to twitter bootstrap
A beginner's guide to twitter bootstrapA beginner's guide to twitter bootstrap
A beginner's guide to twitter bootstrapSunanda Bansal
 
Responsive web-design through bootstrap
Responsive web-design through bootstrapResponsive web-design through bootstrap
Responsive web-design through bootstrapZunair Sagitarioux
 
Bootstrap 3 - Sleek, intuitive, and powerful mobile first front-end framework...
Bootstrap 3 - Sleek, intuitive, and powerful mobile first front-end framework...Bootstrap 3 - Sleek, intuitive, and powerful mobile first front-end framework...
Bootstrap 3 - Sleek, intuitive, and powerful mobile first front-end framework...Cedric Spillebeen
 
Bootstrap for Beginners
Bootstrap for BeginnersBootstrap for Beginners
Bootstrap for BeginnersD'arce Hess
 
Bootstrap PPT by Mukesh
Bootstrap PPT by MukeshBootstrap PPT by Mukesh
Bootstrap PPT by MukeshMukesh Kumar
 
Bootstrap tutorial
Bootstrap tutorialBootstrap tutorial
Bootstrap tutorialvijaypatel_b
 
Building a Moodle theme with bootstrap
Building a Moodle theme with bootstrapBuilding a Moodle theme with bootstrap
Building a Moodle theme with bootstrapBas Brands
 
An introduction to bootstrap
An introduction to bootstrapAn introduction to bootstrap
An introduction to bootstrapMind IT Systems
 
Twitter bootstrap
Twitter bootstrapTwitter bootstrap
Twitter bootstrapVeck Hsiao
 
Bootstrap - Web Development Framework
Bootstrap - Web Development FrameworkBootstrap - Web Development Framework
Bootstrap - Web Development FrameworkCindy Royal
 
Bootstrap 5 whats new
Bootstrap 5   whats newBootstrap 5   whats new
Bootstrap 5 whats newSandun Perera
 
What is New in Bootstrap 5?
What is New in Bootstrap 5? What is New in Bootstrap 5?
What is New in Bootstrap 5? Study Section
 
Refreshing Your UI with HTML5, Bootstrap and CSS3
Refreshing Your UI with HTML5, Bootstrap and CSS3Refreshing Your UI with HTML5, Bootstrap and CSS3
Refreshing Your UI with HTML5, Bootstrap and CSS3Matt Raible
 
Stop reinventing the wheel: Build Responsive Websites Using Bootstrap
Stop reinventing the wheel: Build Responsive Websites Using BootstrapStop reinventing the wheel: Build Responsive Websites Using Bootstrap
Stop reinventing the wheel: Build Responsive Websites Using Bootstrapfreshlybakedpixels
 
Twitter bootstrap training_session_ppt
Twitter bootstrap training_session_pptTwitter bootstrap training_session_ppt
Twitter bootstrap training_session_pptRadheshyam Kori
 
Presentation of bootstrap
Presentation of bootstrapPresentation of bootstrap
Presentation of bootstrap1amitgupta
 

What's hot (20)

Bootstrap 4 Tutorial PDF for Beginners - Learn Step by Step
Bootstrap 4 Tutorial PDF for Beginners - Learn Step by StepBootstrap 4 Tutorial PDF for Beginners - Learn Step by Step
Bootstrap 4 Tutorial PDF for Beginners - Learn Step by Step
 
A beginner's guide to twitter bootstrap
A beginner's guide to twitter bootstrapA beginner's guide to twitter bootstrap
A beginner's guide to twitter bootstrap
 
Bootstrap 4 n00bz
Bootstrap 4 n00bzBootstrap 4 n00bz
Bootstrap 4 n00bz
 
Responsive web-design through bootstrap
Responsive web-design through bootstrapResponsive web-design through bootstrap
Responsive web-design through bootstrap
 
Bootstrap [part 1]
Bootstrap [part 1]Bootstrap [part 1]
Bootstrap [part 1]
 
Bootstrap 3 - Sleek, intuitive, and powerful mobile first front-end framework...
Bootstrap 3 - Sleek, intuitive, and powerful mobile first front-end framework...Bootstrap 3 - Sleek, intuitive, and powerful mobile first front-end framework...
Bootstrap 3 - Sleek, intuitive, and powerful mobile first front-end framework...
 
Bootstrap for Beginners
Bootstrap for BeginnersBootstrap for Beginners
Bootstrap for Beginners
 
Bootstrap
BootstrapBootstrap
Bootstrap
 
Bootstrap PPT by Mukesh
Bootstrap PPT by MukeshBootstrap PPT by Mukesh
Bootstrap PPT by Mukesh
 
Bootstrap tutorial
Bootstrap tutorialBootstrap tutorial
Bootstrap tutorial
 
Building a Moodle theme with bootstrap
Building a Moodle theme with bootstrapBuilding a Moodle theme with bootstrap
Building a Moodle theme with bootstrap
 
An introduction to bootstrap
An introduction to bootstrapAn introduction to bootstrap
An introduction to bootstrap
 
Twitter bootstrap
Twitter bootstrapTwitter bootstrap
Twitter bootstrap
 
Bootstrap - Web Development Framework
Bootstrap - Web Development FrameworkBootstrap - Web Development Framework
Bootstrap - Web Development Framework
 
Bootstrap 5 whats new
Bootstrap 5   whats newBootstrap 5   whats new
Bootstrap 5 whats new
 
What is New in Bootstrap 5?
What is New in Bootstrap 5? What is New in Bootstrap 5?
What is New in Bootstrap 5?
 
Refreshing Your UI with HTML5, Bootstrap and CSS3
Refreshing Your UI with HTML5, Bootstrap and CSS3Refreshing Your UI with HTML5, Bootstrap and CSS3
Refreshing Your UI with HTML5, Bootstrap and CSS3
 
Stop reinventing the wheel: Build Responsive Websites Using Bootstrap
Stop reinventing the wheel: Build Responsive Websites Using BootstrapStop reinventing the wheel: Build Responsive Websites Using Bootstrap
Stop reinventing the wheel: Build Responsive Websites Using Bootstrap
 
Twitter bootstrap training_session_ppt
Twitter bootstrap training_session_pptTwitter bootstrap training_session_ppt
Twitter bootstrap training_session_ppt
 
Presentation of bootstrap
Presentation of bootstrapPresentation of bootstrap
Presentation of bootstrap
 

Viewers also liked

Bootstrap 3 training
Bootstrap 3 trainingBootstrap 3 training
Bootstrap 3 trainingVison Sunon
 
Twitter bootstrap (css, components and javascript)
Twitter bootstrap (css, components and javascript)Twitter bootstrap (css, components and javascript)
Twitter bootstrap (css, components and javascript)NexThoughts Technologies
 
Twitter Bootstrap for web UI development
Twitter Bootstrap for web UI development Twitter Bootstrap for web UI development
Twitter Bootstrap for web UI development Infinity Levels Studio
 
Presentation on Bootstrap Course
Presentation on Bootstrap CoursePresentation on Bootstrap Course
Presentation on Bootstrap CourseBapu Graphics India
 
Bootstrap Study Share
Bootstrap Study ShareBootstrap Study Share
Bootstrap Study ShareVincent Chang
 
Bootstrap 3
Bootstrap 3Bootstrap 3
Bootstrap 3Lanh Le
 
HTML & CSS #10 : Bootstrap
HTML & CSS #10 : BootstrapHTML & CSS #10 : Bootstrap
HTML & CSS #10 : BootstrapJean Michel
 
Design for Developers: Introduction to Bootstrap 3
Design for Developers: Introduction to Bootstrap 3Design for Developers: Introduction to Bootstrap 3
Design for Developers: Introduction to Bootstrap 3John Bertucci
 

Viewers also liked (10)

Bootstrap 3 training
Bootstrap 3 trainingBootstrap 3 training
Bootstrap 3 training
 
Twitter bootstrap (css, components and javascript)
Twitter bootstrap (css, components and javascript)Twitter bootstrap (css, components and javascript)
Twitter bootstrap (css, components and javascript)
 
Twitter Bootstrap for web UI development
Twitter Bootstrap for web UI development Twitter Bootstrap for web UI development
Twitter Bootstrap for web UI development
 
Presentation on Bootstrap Course
Presentation on Bootstrap CoursePresentation on Bootstrap Course
Presentation on Bootstrap Course
 
Bootstrap Study Share
Bootstrap Study ShareBootstrap Study Share
Bootstrap Study Share
 
Bootstrap 3
Bootstrap 3Bootstrap 3
Bootstrap 3
 
Bootstrap Framework
Bootstrap Framework Bootstrap Framework
Bootstrap Framework
 
HTML & CSS #10 : Bootstrap
HTML & CSS #10 : BootstrapHTML & CSS #10 : Bootstrap
HTML & CSS #10 : Bootstrap
 
Bootstrap 3 Basic - Bangkok WordPress Meetup
Bootstrap 3 Basic - Bangkok WordPress MeetupBootstrap 3 Basic - Bangkok WordPress Meetup
Bootstrap 3 Basic - Bangkok WordPress Meetup
 
Design for Developers: Introduction to Bootstrap 3
Design for Developers: Introduction to Bootstrap 3Design for Developers: Introduction to Bootstrap 3
Design for Developers: Introduction to Bootstrap 3
 

Similar to Intro To Twitter Bootstrap

Scalable front-end architecture with Bootstrap 3 + Atomic CSS
Scalable front-end architecture with Bootstrap 3 + Atomic CSSScalable front-end architecture with Bootstrap 3 + Atomic CSS
Scalable front-end architecture with Bootstrap 3 + Atomic CSSHayden Bleasel
 
Intermediate Web Design.doc
Intermediate Web Design.docIntermediate Web Design.doc
Intermediate Web Design.docbutest
 
Intermediate Web Design.doc
Intermediate Web Design.docIntermediate Web Design.doc
Intermediate Web Design.docbutest
 
Know the reason behind choosing bootstrap as css framework
Know the reason behind choosing bootstrap as css frameworkKnow the reason behind choosing bootstrap as css framework
Know the reason behind choosing bootstrap as css frameworkOmkarsoft Bangalore
 
Thinkful - Frontend Crash Course - Intro to HTML/CSS
Thinkful - Frontend Crash Course - Intro to HTML/CSSThinkful - Frontend Crash Course - Intro to HTML/CSS
Thinkful - Frontend Crash Course - Intro to HTML/CSSTJ Stalcup
 
Code & Design Your First Website (Downtown Los Angeles)
Code & Design Your First Website (Downtown Los Angeles)Code & Design Your First Website (Downtown Los Angeles)
Code & Design Your First Website (Downtown Los Angeles)Thinkful
 
Html:css crash course (4:5)
Html:css crash course (4:5)Html:css crash course (4:5)
Html:css crash course (4:5)Thinkful
 
Code &amp; design your first website (3:16)
Code &amp; design your first website (3:16)Code &amp; design your first website (3:16)
Code &amp; design your first website (3:16)Thinkful
 
Html css crash course may 11th, atlanta
Html css crash course may 11th, atlantaHtml css crash course may 11th, atlanta
Html css crash course may 11th, atlantaThinkful
 
Front end full stack development module 1pptx
Front end full stack development module 1pptxFront end full stack development module 1pptx
Front end full stack development module 1pptxMaruthiPrasad96
 
Introduction to BOOTSTRAP
Introduction to BOOTSTRAPIntroduction to BOOTSTRAP
Introduction to BOOTSTRAPJeanie Arnoco
 
Responsive Web Design (April 18th, Los Angeles)
Responsive Web Design (April 18th, Los Angeles)Responsive Web Design (April 18th, Los Angeles)
Responsive Web Design (April 18th, Los Angeles)Thinkful
 
Lesson 8 Computer Creating your Website.pdf
Lesson 8 Computer Creating your Website.pdfLesson 8 Computer Creating your Website.pdf
Lesson 8 Computer Creating your Website.pdfAshleyJovelClavecill
 
Web development and web design with seo
Web development and web design with seoWeb development and web design with seo
Web development and web design with seoRajat Anand
 
Structuring your CSS for maintainability: rules and guile lines to write CSS
Structuring your CSS for maintainability: rules and guile lines to write CSSStructuring your CSS for maintainability: rules and guile lines to write CSS
Structuring your CSS for maintainability: rules and guile lines to write CSSSanjoy Kr. Paul
 
Web design-workflow
Web design-workflowWeb design-workflow
Web design-workflowPeter Kaizer
 

Similar to Intro To Twitter Bootstrap (20)

Scalable front-end architecture with Bootstrap 3 + Atomic CSS
Scalable front-end architecture with Bootstrap 3 + Atomic CSSScalable front-end architecture with Bootstrap 3 + Atomic CSS
Scalable front-end architecture with Bootstrap 3 + Atomic CSS
 
Intermediate Web Design.doc
Intermediate Web Design.docIntermediate Web Design.doc
Intermediate Web Design.doc
 
Intermediate Web Design.doc
Intermediate Web Design.docIntermediate Web Design.doc
Intermediate Web Design.doc
 
Know the reason behind choosing bootstrap as css framework
Know the reason behind choosing bootstrap as css frameworkKnow the reason behind choosing bootstrap as css framework
Know the reason behind choosing bootstrap as css framework
 
Thinkful - Frontend Crash Course - Intro to HTML/CSS
Thinkful - Frontend Crash Course - Intro to HTML/CSSThinkful - Frontend Crash Course - Intro to HTML/CSS
Thinkful - Frontend Crash Course - Intro to HTML/CSS
 
Code & Design Your First Website (Downtown Los Angeles)
Code & Design Your First Website (Downtown Los Angeles)Code & Design Your First Website (Downtown Los Angeles)
Code & Design Your First Website (Downtown Los Angeles)
 
Html:css crash course (4:5)
Html:css crash course (4:5)Html:css crash course (4:5)
Html:css crash course (4:5)
 
Introducing Cascading Style Sheets
Introducing Cascading Style SheetsIntroducing Cascading Style Sheets
Introducing Cascading Style Sheets
 
Code &amp; design your first website (3:16)
Code &amp; design your first website (3:16)Code &amp; design your first website (3:16)
Code &amp; design your first website (3:16)
 
Css
CssCss
Css
 
Html css crash course may 11th, atlanta
Html css crash course may 11th, atlantaHtml css crash course may 11th, atlanta
Html css crash course may 11th, atlanta
 
Front end full stack development module 1pptx
Front end full stack development module 1pptxFront end full stack development module 1pptx
Front end full stack development module 1pptx
 
ARTICULOENINGLES
ARTICULOENINGLESARTICULOENINGLES
ARTICULOENINGLES
 
Introduction to BOOTSTRAP
Introduction to BOOTSTRAPIntroduction to BOOTSTRAP
Introduction to BOOTSTRAP
 
Responsive Web Design (April 18th, Los Angeles)
Responsive Web Design (April 18th, Los Angeles)Responsive Web Design (April 18th, Los Angeles)
Responsive Web Design (April 18th, Los Angeles)
 
Lesson 8 Computer Creating your Website.pdf
Lesson 8 Computer Creating your Website.pdfLesson 8 Computer Creating your Website.pdf
Lesson 8 Computer Creating your Website.pdf
 
Css external style sheet
Css external style sheetCss external style sheet
Css external style sheet
 
Web development and web design with seo
Web development and web design with seoWeb development and web design with seo
Web development and web design with seo
 
Structuring your CSS for maintainability: rules and guile lines to write CSS
Structuring your CSS for maintainability: rules and guile lines to write CSSStructuring your CSS for maintainability: rules and guile lines to write CSS
Structuring your CSS for maintainability: rules and guile lines to write CSS
 
Web design-workflow
Web design-workflowWeb design-workflow
Web design-workflow
 

Recently uploaded

Open Source Summit NA 2024: Open Source Cloud Costs - OpenCost's Impact on En...
Open Source Summit NA 2024: Open Source Cloud Costs - OpenCost's Impact on En...Open Source Summit NA 2024: Open Source Cloud Costs - OpenCost's Impact on En...
Open Source Summit NA 2024: Open Source Cloud Costs - OpenCost's Impact on En...Matt Ray
 
Building Real-Time Data Pipelines: Stream & Batch Processing workshop Slide
Building Real-Time Data Pipelines: Stream & Batch Processing workshop SlideBuilding Real-Time Data Pipelines: Stream & Batch Processing workshop Slide
Building Real-Time Data Pipelines: Stream & Batch Processing workshop SlideChristina Lin
 
ODSC - Batch to Stream workshop - integration of Apache Spark, Cassandra, Pos...
ODSC - Batch to Stream workshop - integration of Apache Spark, Cassandra, Pos...ODSC - Batch to Stream workshop - integration of Apache Spark, Cassandra, Pos...
ODSC - Batch to Stream workshop - integration of Apache Spark, Cassandra, Pos...Christina Lin
 
Alluxio Monthly Webinar | Cloud-Native Model Training on Distributed Data
Alluxio Monthly Webinar | Cloud-Native Model Training on Distributed DataAlluxio Monthly Webinar | Cloud-Native Model Training on Distributed Data
Alluxio Monthly Webinar | Cloud-Native Model Training on Distributed DataAlluxio, Inc.
 
How to Track Employee Performance A Comprehensive Guide.pdf
How to Track Employee Performance A Comprehensive Guide.pdfHow to Track Employee Performance A Comprehensive Guide.pdf
How to Track Employee Performance A Comprehensive Guide.pdfLivetecs LLC
 
Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...
Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...
Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...soniya singh
 
Cloud Management Software Platforms: OpenStack
Cloud Management Software Platforms: OpenStackCloud Management Software Platforms: OpenStack
Cloud Management Software Platforms: OpenStackVICTOR MAESTRE RAMIREZ
 
Xen Safety Embedded OSS Summit April 2024 v4.pdf
Xen Safety Embedded OSS Summit April 2024 v4.pdfXen Safety Embedded OSS Summit April 2024 v4.pdf
Xen Safety Embedded OSS Summit April 2024 v4.pdfStefano Stabellini
 
Recruitment Management Software Benefits (Infographic)
Recruitment Management Software Benefits (Infographic)Recruitment Management Software Benefits (Infographic)
Recruitment Management Software Benefits (Infographic)Hr365.us smith
 
SpotFlow: Tracking Method Calls and States at Runtime
SpotFlow: Tracking Method Calls and States at RuntimeSpotFlow: Tracking Method Calls and States at Runtime
SpotFlow: Tracking Method Calls and States at Runtimeandrehoraa
 
What are the key points to focus on before starting to learn ETL Development....
What are the key points to focus on before starting to learn ETL Development....What are the key points to focus on before starting to learn ETL Development....
What are the key points to focus on before starting to learn ETL Development....kzayra69
 
Building a General PDE Solving Framework with Symbolic-Numeric Scientific Mac...
Building a General PDE Solving Framework with Symbolic-Numeric Scientific Mac...Building a General PDE Solving Framework with Symbolic-Numeric Scientific Mac...
Building a General PDE Solving Framework with Symbolic-Numeric Scientific Mac...stazi3110
 
Introduction Computer Science - Software Design.pdf
Introduction Computer Science - Software Design.pdfIntroduction Computer Science - Software Design.pdf
Introduction Computer Science - Software Design.pdfFerryKemperman
 
React Server Component in Next.js by Hanief Utama
React Server Component in Next.js by Hanief UtamaReact Server Component in Next.js by Hanief Utama
React Server Component in Next.js by Hanief UtamaHanief Utama
 
Maximizing Efficiency and Profitability with OnePlan’s Professional Service A...
Maximizing Efficiency and Profitability with OnePlan’s Professional Service A...Maximizing Efficiency and Profitability with OnePlan’s Professional Service A...
Maximizing Efficiency and Profitability with OnePlan’s Professional Service A...OnePlan Solutions
 
What is Advanced Excel and what are some best practices for designing and cre...
What is Advanced Excel and what are some best practices for designing and cre...What is Advanced Excel and what are some best practices for designing and cre...
What is Advanced Excel and what are some best practices for designing and cre...Technogeeks
 
CRM Contender Series: HubSpot vs. Salesforce
CRM Contender Series: HubSpot vs. SalesforceCRM Contender Series: HubSpot vs. Salesforce
CRM Contender Series: HubSpot vs. SalesforceBrainSell Technologies
 
SuccessFactors 1H 2024 Release - Sneak-Peek by Deloitte Germany
SuccessFactors 1H 2024 Release - Sneak-Peek by Deloitte GermanySuccessFactors 1H 2024 Release - Sneak-Peek by Deloitte Germany
SuccessFactors 1H 2024 Release - Sneak-Peek by Deloitte GermanyChristoph Pohl
 
Automate your Kamailio Test Calls - Kamailio World 2024
Automate your Kamailio Test Calls - Kamailio World 2024Automate your Kamailio Test Calls - Kamailio World 2024
Automate your Kamailio Test Calls - Kamailio World 2024Andreas Granig
 

Recently uploaded (20)

Open Source Summit NA 2024: Open Source Cloud Costs - OpenCost's Impact on En...
Open Source Summit NA 2024: Open Source Cloud Costs - OpenCost's Impact on En...Open Source Summit NA 2024: Open Source Cloud Costs - OpenCost's Impact on En...
Open Source Summit NA 2024: Open Source Cloud Costs - OpenCost's Impact on En...
 
Building Real-Time Data Pipelines: Stream & Batch Processing workshop Slide
Building Real-Time Data Pipelines: Stream & Batch Processing workshop SlideBuilding Real-Time Data Pipelines: Stream & Batch Processing workshop Slide
Building Real-Time Data Pipelines: Stream & Batch Processing workshop Slide
 
ODSC - Batch to Stream workshop - integration of Apache Spark, Cassandra, Pos...
ODSC - Batch to Stream workshop - integration of Apache Spark, Cassandra, Pos...ODSC - Batch to Stream workshop - integration of Apache Spark, Cassandra, Pos...
ODSC - Batch to Stream workshop - integration of Apache Spark, Cassandra, Pos...
 
Alluxio Monthly Webinar | Cloud-Native Model Training on Distributed Data
Alluxio Monthly Webinar | Cloud-Native Model Training on Distributed DataAlluxio Monthly Webinar | Cloud-Native Model Training on Distributed Data
Alluxio Monthly Webinar | Cloud-Native Model Training on Distributed Data
 
How to Track Employee Performance A Comprehensive Guide.pdf
How to Track Employee Performance A Comprehensive Guide.pdfHow to Track Employee Performance A Comprehensive Guide.pdf
How to Track Employee Performance A Comprehensive Guide.pdf
 
Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...
Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...
Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...
 
Cloud Management Software Platforms: OpenStack
Cloud Management Software Platforms: OpenStackCloud Management Software Platforms: OpenStack
Cloud Management Software Platforms: OpenStack
 
Xen Safety Embedded OSS Summit April 2024 v4.pdf
Xen Safety Embedded OSS Summit April 2024 v4.pdfXen Safety Embedded OSS Summit April 2024 v4.pdf
Xen Safety Embedded OSS Summit April 2024 v4.pdf
 
Recruitment Management Software Benefits (Infographic)
Recruitment Management Software Benefits (Infographic)Recruitment Management Software Benefits (Infographic)
Recruitment Management Software Benefits (Infographic)
 
SpotFlow: Tracking Method Calls and States at Runtime
SpotFlow: Tracking Method Calls and States at RuntimeSpotFlow: Tracking Method Calls and States at Runtime
SpotFlow: Tracking Method Calls and States at Runtime
 
What are the key points to focus on before starting to learn ETL Development....
What are the key points to focus on before starting to learn ETL Development....What are the key points to focus on before starting to learn ETL Development....
What are the key points to focus on before starting to learn ETL Development....
 
Building a General PDE Solving Framework with Symbolic-Numeric Scientific Mac...
Building a General PDE Solving Framework with Symbolic-Numeric Scientific Mac...Building a General PDE Solving Framework with Symbolic-Numeric Scientific Mac...
Building a General PDE Solving Framework with Symbolic-Numeric Scientific Mac...
 
Introduction Computer Science - Software Design.pdf
Introduction Computer Science - Software Design.pdfIntroduction Computer Science - Software Design.pdf
Introduction Computer Science - Software Design.pdf
 
React Server Component in Next.js by Hanief Utama
React Server Component in Next.js by Hanief UtamaReact Server Component in Next.js by Hanief Utama
React Server Component in Next.js by Hanief Utama
 
2.pdf Ejercicios de programación competitiva
2.pdf Ejercicios de programación competitiva2.pdf Ejercicios de programación competitiva
2.pdf Ejercicios de programación competitiva
 
Maximizing Efficiency and Profitability with OnePlan’s Professional Service A...
Maximizing Efficiency and Profitability with OnePlan’s Professional Service A...Maximizing Efficiency and Profitability with OnePlan’s Professional Service A...
Maximizing Efficiency and Profitability with OnePlan’s Professional Service A...
 
What is Advanced Excel and what are some best practices for designing and cre...
What is Advanced Excel and what are some best practices for designing and cre...What is Advanced Excel and what are some best practices for designing and cre...
What is Advanced Excel and what are some best practices for designing and cre...
 
CRM Contender Series: HubSpot vs. Salesforce
CRM Contender Series: HubSpot vs. SalesforceCRM Contender Series: HubSpot vs. Salesforce
CRM Contender Series: HubSpot vs. Salesforce
 
SuccessFactors 1H 2024 Release - Sneak-Peek by Deloitte Germany
SuccessFactors 1H 2024 Release - Sneak-Peek by Deloitte GermanySuccessFactors 1H 2024 Release - Sneak-Peek by Deloitte Germany
SuccessFactors 1H 2024 Release - Sneak-Peek by Deloitte Germany
 
Automate your Kamailio Test Calls - Kamailio World 2024
Automate your Kamailio Test Calls - Kamailio World 2024Automate your Kamailio Test Calls - Kamailio World 2024
Automate your Kamailio Test Calls - Kamailio World 2024
 

Intro To Twitter Bootstrap

  • 1. DevChat #1 Intro to Twitter Bootstrap: A Crash Course on Web Development for Noobs Ahmed Haque PhD Candidate – Rice Bioengineering afhaque@rice.edu Jan 24. 2015 | Duncan 1046
  • 3. Learning is Frustrating “You can’t tell whether you’re learning something when you’re learning it—in fact, learning feels a lot more like frustration. What I’ve learned is that during this period of frustration is actually when people improve the most, and their improvements are usually obvious to an outsider. If you feel frustrated while trying to understand new concepts, try to remember that it might not feel like it, but you’re probably rapidly expanding your knowledge.” Phillip Dickey, Author of Write Modern Web Apps with the MEAN Stack: Mongo, Express, AngularJS, and Node.JS
  • 4. Agenda I. Introduction II. A Primer on HTML / CSS III. Behold! Bootstrap IV. Sketching / Grid Layouts V. Key Bootstrap Parts VI. Time to Build! i. Translating Sketch into “Rows, Columns, and Containers” ii. Initializing Project iii. Building a Navbar iv. Adding Images v. Adding Tables vi. Adding Forms vii. Formatting the Look
  • 5. What to Takeaway! If you’re a… • Total Beginner to Coding: – Walk away with an understanding of what HTML/CSS is, how it works, and where Bootstrap fits in. – Understanding grid layouts would be good too! • Coded Before, New to Web: – Walk away understanding how to translate a grid layout into HTML/CSS using Bootstrap “rows, columns, and containers ”. – Also, understand how to use the Bootstrap documentation to “pick and place” resources as necessary. • HTML/CSS Fiddler: – Learn tricks to develop more systematically – Gain the confidence to build your own site from scratch!
  • 6. How to Keep Up! As we go through this workshop… Feel encouraged to ask your neighbors for help. It’s the fastest way to get help If no one around you knows the answer – feel free to stop me and ask! (We can Google it together )
  • 7. A Primer on HTML/CSS
  • 8. HTML / CSS Definitions (*yawn* unimportant) • HTML: Hypertext Markup Language – (Content) • CSS: Cascading Style Sheets – (Appearance) • HTML/CSS are the “languages of the web”. Together they define both the content and the aesthetics of a webpage – handling everything from the layouts, colors, fonts, and content placement. (Javascript is the third – handling logic, animation, etc.)
  • 9. Basic HTML Example Headers Webpage Title Image / Text Links / List
  • 10. Key HTML Tags Headers: • <h1> </h1> - Header 1 (Largest Header) • <h2> </h2> - Header 2 (Next Largest Header) • <h3> </h3> - Header 3 • … Containers: • <html> </html> - Wraps the entire page • <body> </body> - Wraps the main content • <div> </div> - Logical Container *** • <p> </p> - Wraps individual Paragraphs • Others: • <img> (images), <a href> (links), <li> (list items) , <head> (top content), <script> (javascript), etc…
  • 14. Our basic website after css…
  • 15. CSS Selectors: “Classes” and “IDs” • CSS works by “hooking” onto selectors added into HTML using “selectors, classes, and identifiers”. • In order to use classes we simply add “class=className” or “id=IDName” into the HTML tag. • We then create a correlating class style (.className) or id style (#IDName) in the CSS file.
  • 16. CSS Selector Example CSS works by “hooking” onto selectors added into HTML. (Like highlighting) In the below example the “Header” would be turned blue and MUCH larger, because of the CSS. Example (HTML): <p class=“bigBlue”>Header</p> Example (CSS): .bigBlue { font-size: 100px; color: blue; }
  • 17. Key CSS Attributes Font / Color: • color: Sets color of text • font-size: Sets size of the font • font-style: Sets italics • font-weight: Sets bold Alignment / Spacing: • margin-top(bottom/left/right): Adds space between element and its own border. • margin-top (bottom/left/right): Adds space between element and surrounding elements. • float: Forces elements to the sides, centers, or tops Background: • background-color: sets background color • background-image: sets background image
  • 18. Our basic website after css… Still boring… but better!
  • 19. HTML / CSS Analogy HTML Alone • Like writing papers in “Notepad”. • Can only write unformatted text. HTML / CSS • Like writing papers in Microsoft Word. • Can format text, page settings, alignment, etc. based on “highlighting” and menu options.
  • 20. Powerful Duo Believe it or not… HTML / CSS is all you need to develop a full-blown rich looking website.
  • 21. Powerful Duo Believe it or not… HTML / CSS is all you need to develop a full-blown rich looking website. But this would totally suck.
  • 23. Bootstrap Definition • Twitter Bootstrap is a free collection of tools for creating websites and web applications. • It comes with a pre-built design template for typography, forms, buttons, navigation, UI elements, and javascript. • Documentation here: http://getbootstrap.com/
  • 24. Why Use Bootstrap? (#1) • Reason #1: UI Kit • Familiarize yourself with the UI features it offers via the documentation. • Once Bootstrap is active, you can simply copy snippets from the documentation to save yourself major time of creating elements yourself.
  • 25. Why Use Bootstrap? (#2) Reason #2: Mobile Responsiveness • One of the most compelling reasons to use Bootstrap is the default mobile-responsive quality it provides. • This means that your website will look “good” automatically when viewed on screens ranging from monitors to tablets to phones. Visit www.ricedevchats.org for an example.
  • 26. HTML / CSS / Bootstrap Analogy HTML Alone • Like writing papers in “Notepad”. • Can only write unformatted text. HTML / CSS • Like writing papers in Microsoft Word. • Can format text, page settings, alignment, etc. based on “highlighting” and menu options. HTML / CSS & Bootstrap • Like writing papers in Microsoft Word with a prebuilt template. • You can still customize, but now have a pre-built style and aesthetic look.
  • 27. Our basic website with Bootstrap… Hot Damn!
  • 28. Sketching / Grid Layouts
  • 29. Importance of Sketches • Because every aspect of a site’s “look” is defined by HTML/CSS – it is crucial to have a detailed sketch going in. • Pay particular attention to the location of navigation bars, titles, headers, content, images, footers etc. • When imagining alignments, in particular, be mindful of the grid
  • 30. Designing with a Grid in Mind • Grids serve to align elements aesthetically.
  • 31. Facebook’s Grid Facebook is a perfect example of a website where the “grid-layout” is obvious. Grids make it easy to have content (text, images, and regions) align aesthetically.
  • 32. A More Complex Grid…
  • 33. A More Complex Grid…
  • 34. Tools for Sketch / Grid Creation Wireframing Tools: • Balsamiq***: https://balsamiq.com/ • Framebox: http://framebox.org/ • Pen and Paper: Your notebook Grids for Photoshop / Illustrator: • 960 GS: http://960.gs/ • GuideGuide: http://framebox.org/ Designing with Grids Guides: • 960 Grid System Made Easy: http://bit.ly/1sjYaFC • Design by Grid: http://www.designbygrid.com/ • Designing with Grid-Based Approach: http://bit.ly/1CM4Hzo
  • 36. Bootstrap Guide • Bootstrap offers a wide range of components for inclusion in your next web project. Best way to use them is to simply flip through the documentation and incorporate elements as necessary.
  • 37. Incorporating Bootstrap To add Bootstrap styling to your web project simply incorporate the CDN reference in the header section of your HTML. Example: <link rel="stylesheet“ href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.2/css/bootstrap.min.css ">
  • 38. Bootstrap Grid System Bootstrap lets you organize content based on the “number of columns” a div spans – out of a total 12 columns. Example: <div class="col-md-12"> (Spans full width) <div class="col-md-4"> (Spans 1/3 of full width)
  • 39. Bootstrap Typography • By default, Bootstrap offers nice looking fonts / size ratios of headers and paragraphs. These come without you needing to do anything! • <p></p>, <h1></h1>, <h2></h2, etc
  • 40. Bootstrap Buttons Bootstrap also helps you quickly create buttons of various size/colors Example: <button class="btn btn-default" type="submit">Button</button>
  • 44. Bootstrap Tables Example: <table class="table table-striped"> <tr> <th>First Name</th> <th>Last Name</th> <th>Username</th> </tr> <tr> <td>Mark</td> <td>Otto</td> </td>@mdo</td> </tr> … </table>
  • 46. Time to Build! See Code Base: https://github.com/afhaque/Rice-DevChats-Bootstrap Start at Commit: 4342549ace9f99684b4192ea5c983b11624c6277 Go to Commit: 62a29269d29d264536ccff4ab707d44493480da7
  • 47. Step 1: Grab Initializer
  • 48. Step 2: Examine Sketch
  • 49. Step 3: Grab Swatches / Background Imgs
  • 50. Step 4: Page Title / Menu Items
  • 51. Step 5: About Skeleton
  • 52. Step 6: Other Skeletons
  • 58. Step 14: Background / Aesthetics
  • 64. Liked it? Hated it? Let us know: ricedevchats.org/reviews Thanks for attending!