Placing a nav bar, in a header within a container grid

Apologies, to all, whom may be offended, by my basic questions, or terminology.
I’m trying to understand containers / responsive grids, etc.

I have done some exercises to create headers / nav bars / mainly html with simple css styles.
I am finding it difficult to apply a nav bar within the grid and add, a logo (left hand corner) with the navigation (home / work / contact links ) following.

Could anyone point me to an example or specific direction / lesson?

this is my code:

CSS Grid sample
   </head>
        <body>
            <div class="container">
            <div class="header">Header</div>
            <div class="content-large">Content</div>
            <div class="footer">Footer</div>        
            </div>
            

        </body>

body {
margin: 0;
}

.container {
width: 100vw;
height: 100vh;
font-family: Helvetica, Arial, sans-serif;
font-weight: normal;
font-size: 16px;

        display: grid;

        grid-template: 50px 1fr 1fr 100px / repeat(3, 1fr);

        gap: 0;
        padding: 0;
        box-sizing: border-box;
        }   

.container div {
padding: 10px;
border: none;
}

.header {
background-color: rgba(22,22,23,0.8);
color: white;
font-family: Helvetica, Arial, sans-serif;
font-weight: normal;
font-size: 16px;
grid-column-start: 1;
grid-column-end: 4;
text-align: left;

        }

.content-large {
grid-row-start: 2;
grid-row-end: span 3;
grid-column-start: 1;
grid-column-end: 4;

        }

.footer {
background-color: rgba(22,22,23,0.8);
color: white;
font-family: Helvetica, Arial, sans-serif;
font-weight: normal;
font-size: 16px;
grid-column: 1 / span 3;
font-family: Helvetica, Arial, sans-serif;
}

i am not sure if i missed it but where is the code that adds the navbar and the logo?

hello - thank you for the reply. I did not add that, as when i tried, it just messed everything up. I am not even sure, if i added my code correctly on the page.

okay I see.
There is a curriculum offered by freeCodeCamp that teaches how to use grid layout. I think you may benefit from it.

again, thank you for your help.

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.