Search code examples
htmlcssflexbox

How to exactly specify the height of a navigation bar


I'm currently learning how to program HTML and CSS (we're talking 4 days of practicing on CodeCademy) and I have a question. I got this spec sheet for a task where they want me to make the navigation bar 69px in height exactly. The navigation bar already has some height to it, of course, as it wraps around the logo and text that's in it. So, how do I specify that I want it to be exactly 69px in height?

Screenshot here that describes what they ask of me. Thanks in advance!

Screenshot


Solution

  • Hope all is going good!

    go to the CSS file and write this.

    .navbar{ height: 69px }