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;
}