11. Navbar
Copy-paste Basic Navbar into top of HMTL body
• Inspect element with Chrome or Firefox Firebug!
• Remove stuff we don’t need
• Put a paragraph ( <p>! ) below the header
•
12. Grid
Skeleton for modern Websites
• 12 columns with total span width of 960px (width container)
• Should be placed within container ( <div class=“container”> )
• Coluns should be placed within row
•
!
=> Make two rows; 1 with 2 columns and one with 3
14. Buttons
Bootstrap gives several colours AND sizes!
• They are classes, so they an be applied to links too!
• Add a large “succcess” button below your tagline
•
15. Icons
•
Used as span class: <span class="glyphicon glyphiconstar”></span> !
They size with the element they span!
• Add a large “succcess” button below your tagline
• Put a star icon before all your three banner elements
•
16. Overruling Bootstrap styling
The lowest css file gets priority over the ones declared before
• Good site for colors: flatuicolors.com
• Nested elements get priority:
•
<div class=“jumbotron”>!
! <h1>Foo</h1>!
</div>
h1 {!
! color: green;!
}
.jumbotron h1 {!
! color: blue;!
}
You can change this by using !important
19. Javascript
Introduced in 1996 by Netscape
• Originally meant to manipulate Document Object Model (DOM)
•
!
!
!
!
•
Always activate JS itself and JS libraries you use at the bottom
of your Webpage for better performance:
•
Let’s activate a Javascript Modal / Layover