4Bootstrap in a Nutshell
Now that you have seen how to add client‐side behavior to a web application, this chapter shows you how to make it look beautiful, by introducing Bootstrap.
Until a few years ago, putting the style on a website was a necessary evil for developers. CSS is not exactly a programming language, and it was not designed with maintainability in mind. Styling a website was a nightmare for web designers, who were using it every day and had to repeat their work with every new project. This led to the creation of hundreds of micro‐libraries with the purpose of reducing repetition (or copy‐paste operations) in the basic and standard CSS definitions.
Luckily, one company, Twitter, decided to publish their internal “blueprint” as an open‐source project known as Bootstrap. This quickly became the most popular CSS “library” available, because of its default styles and components, its modularity, and the ease with which it can be customized via the CSS pre‐processing language Less (and recently also with Sass). Bootstrap is responsive by default, which means that sites and web apps built with it adapt automatically to the screen size of the device, be it a TV screen, desktop, laptop, tablet, or smartphone. This framework has good support in Visual Studio 2017, which makes ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access