Recently, I started working on a web project on Codepen using Bootstrap 4 and JQuery quick-adds. The results were perfect on Codepen but when I copied the same code to my text-editor and ran it from there, the formatting of the page was completely off. I tried including the same Bootstrap and JQuery CDN links, but without success. How can I make my code run the same way it does on Codepen.io? What links do I need to include?
Below is the desired outcome:
https://i.sstatic.net/ZIRBr.jpg
However, when I test the code in Firefox/Chrome browsers, the result is not what I expected. Most of the Bootstrap 4 styling is missing, and there are issues with the links in the navigation bar. When I attempt to use text-decoration: none;
on my <a>
elements and button, my JQuery code stops working.
https://i.sstatic.net/CBm50.jpg
On Internet Explorer, the outcome is the worst of all. Despite following some suggestions on moving the links, the result is still far from ideal.
https://i.sstatic.net/R0tQo.jpg
To resolve this, I have included the relevant JavaScript and CSS code below: