As someone who is new to CSS, I am currently working on a welcome page that includes a login section in the navbar. While I have successfully created div sections for the entire page, I am seeking assistance with coding the navbar using CSS.
The current CSS code looks like this:
div.col-4
{
width:41%;
float:left;
background: #ffffff;
height: 100%;
}
div.col-6
{
width:58%;
float:right;
background: #ffffff;
height: 100%;
}
#topbar-hello{
position:fixed;
top:0;
left:0;
width:100%;
height:80px;
background-color:#0084fd;
}
Here is the HTML structure:
<body>
<div id="topbar-hello">
<!-- This is where I need to add the login section -->
</div>
<div class="col-4">
</div>
<div class="col-6">
</div>
</body>
Current layout:
https://i.sstatic.net/3bfrt.jpg
I am looking to integrate a login area (consisting of two textboxes and spans) into the navbar:
https://i.sstatic.net/CHoAP.jpg
Struggling to figure out how to align the textboxes, labels, and checkbox within the navbar. Can you provide guidance on the needed CSS code for achieving the desired login area?