Adding a Stylesheet
Explore how to improve the visual appeal of your PHP web pages by integrating the Bootstrap CSS framework. Understand how to include stylesheets, wrap content in containers, and implement a navigation bar to create a more polished layout. This lesson also covers styling flash messages using Bootstrap components.
We'll cover the following...
Styling pages
The styling of our pages is not aesthetically very appealing.
We can write our own stylesheet to fix this, or (as I like to do when there isn’t a professional designer on my team) we can use Bootstrap.
Download the compiled CSS from their website.
After extracting the downloaded archive file, look for a file called bootstrap.min.css.
Copy this file to public/.
Then modify _header.php so every page will include this .css file, and use it as a stylesheet: