Putting it all together
Until now, we have discussed the various aspects of Bootstrap with LESS. We are not using the Bootstrap CSS CDN in this example as we are going to alter the bootstrap.less
file, which will compile to bootstrap.css
using the WinLess compiler.
You will now implement the knowledge you gained in a step-by-step approach:
- Download and unzip the Bootstrap files into a folder.
- Create an HTML file called
bootstrap_example
and save it in the same folder where you saved the Bootstrap files.The code for the
bootstrap_example
HTML document is as follows:<!DOCTYPE html> <html> <head> <title>BootStrap with Packt</title> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <!-- Downloaded Bootstrap ...
Get Learning Bootstrap now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.