Locked lesson.
About this lesson
Exercise files
Download this lesson’s related exercise files.
Modifying Bootstrap.docx59 KB Modifying Bootstrap - Solution.docx
59.1 KB
Quick reference
Modifying Bootstrap
Customizing Bootstrap can be done by creating a custom css file.
When to use
Any time you want to modify Bootstrap to do something other than the default, use thse instructions.
Instructions
To customize Boostsrap, create a custom CSS file (I like to name it custom.css but call it whatever you like).
Reference that custom CSS file in your web page in the <head> and </head> tag:
<link href="css/custom.css" rel="stylesheet">
Make sure that reference is added UNDER the Bootstrap reference:
<link href="css/bootstrap.min.css" rel="stylesheet">
<link href="css/custom.css" rel="stylesheet">
Add any CSS you'd like to that custom CSS sheet.
Copy and past the CSS class you want to modify from your bootsrap.css file into your custom.css file and then make whatever changes you like.
Hints & tips
- Create a custom CSS file
- Be sure to reference your custom CSS file in your <head> tag on your web page.
Lesson notes are only available for subscribers.