Front End Development Libraries Projects - Build a Drum Machine

Tell us what’s happening:

Bootstrap borders are not showing up in my preview. I read Bootstrap’s documentation and tried to setup a border around my parent container to visualize the elements I’m working with, but no matter what I try, I can’t get the borders to appear. I inspected the element using Firefox Inspector, and it seems my parent element (id=“drum-machine”) has box-sizing: border-box and inherited from body the properties line-height: 1.42857143 and color: #333 (which I assume refer to the border). Feels like I’m missing something very basic, but I can’t put my finger on it.

These are the classes I’m using for the parent element: className=“container-fluid border border-primary border-5”. Full code can be found here: https://codepen.io/fernandopa/pen/LYKaJQJ

Please disregard the rest of the exercise - it’s still far from finished and requires a lot of work, but I want to get this setup phase right instead of trying to fix it afterwards (like happened with my previous exercise).

Thanks!

Your code so far

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:130.0) Gecko/20100101 Firefox/130.0

Challenge Information:

Front End Development Libraries Projects - Build a Drum Machine

I don’t see it in your code, how are you importing bootstrap?

On the HTML file, through the following declaration:

< link rel=“stylesheet” href=“https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css” integrity=“sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u” crossorigin=“anonymous”/>

did you want this?


use the pen settings to import things


image

also bootstrap requires both a css and a js import

It is because you are using Bootstrap 3. Switch to the current version. You can load it in the HTML if you want.

<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-QWTKZyjpPEjISv5WaRU9OFeRpok6YctnYmDr5pNlyT2bRjXh0JMhjY6hW+ALEwIH" crossorigin="anonymous">
1 Like

Ok I did not even realize I was not importing the latest version, and updating it fixed my issue. I really appreciate the eye to detail, thank you