Scrollable Vertical Navigation Menu with Fly Out Feature implemented using only HTML and CSS

Hello there, just wanted to mention that I am new to this site so please bear with me if I fumble a bit. I'm sure I'll improve as I gain more experience.

My aim is to create a vertical navigation menu using only HTML/CSS that can scroll and expand to the right for additional subjects. I have put together the basic structure, but I am facing issues with the scrolling function and a few other elements. I've managed to get the main navigation to scroll, but cannot figure out how to keep the flyout working properly. Below is the code I have written so far along with a rough sketch of how the navigation should function.

<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>module3</title>
</head> 
<style type="text/css">

    *{
    margin: 0px;
    padding: 0px;
    }       


    a   {
        color:inherit;
        text-decoration: none;
        }

    ul#navmenu a:hover{
        color: #FFF;
        }   

    body
        {
        font-size: 15px;
        font-family: "Helvetica Neue 25 Ultra Light", Arial;
        text-transform: uppercase;
        padding: 50px;
        color: #535353;
        }

            ul#navmenu, ul.sub1, ul.sub2 {
            list-style-type: none;
            }
            ul#navmenu li {
                /*outline: 1px solid red*/
                width: 310px;
                text-align: center;
                position: relative;
                border-bottom: 0.12em dotted #ABB0B0;
                text-align: left;
            }
            ul#navmenu a {
                text-decoration: none;
                display: block;
                width: 300px;
                height: 45px;
                line-height: 45px;
                background-color: #E5E8E9;
                padding-left: 10px;
            }   
            ul#navmenu .sub1 li {

            }
            ul#navmenu .su1 a {
                margin-top: 5px;


            }
            ul#navmenu .sub2 a {
                margin-left: 10px;
                width: 500px;

            }
            
            ... (rest of CSS goes here) ...

![Photo mock up from client][1]


  [1]: https://i.sstatic.net/uIR1x.jpg

Similar questions

If you have not found the answer to your question or you are interested in this topic, then look at other similar questions below or use the search

Click on the hamburger to trigger the CSS transition

The objective of my project is to create an interactive hamburger icon that transforms into a cross when clicked, and reverts back to its original state on a second click. While I have successfully implemented a transition on hover and click through resea ...

Icons and texts are not appearing in the Bootstrap Navbar

I'm having an issue with displaying the brand logo along with a compact disk image and some text. The code works fine everywhere except within the tag.</p> <p>Here's the code snippet I'm working with, using Django on the backend ...

Employing two contrasting body background colors

Is there a way to have 2 different background colors on a web page? Check out the code here: Initially, the background is one color, https://i.sstatic.net/7p3Gs.png If you click on a circle, how can you change the background to a different color? http ...

Exploring file directories in your web browser using Node.js - a guide to embedding a file system path in your HTML response

I am currently facing an issue where I am trying to retrieve content from my nodejs express controller that includes a file system link for viewing logs in the browser. However, when I click on this link, nothing happens. The logs specified in the href li ...

CSS: Child Div Fails to Override Parent Div

My current page's content header appears as follows: However, I am aiming for something like this instead: This is the HTML snippet related to that part of the page: <div class="header">My Tools<a href="#possess" class="anchor_link">Vie ...

The division is now appearing below the preceding division instead of following it

I am currently encountering an issue that I believe has a simple solution, but I am unable to find it. I have two divs in my code. The first div contains a blurred background image and content, which is working perfectly fine. However, the second div is n ...

Issue with Bootstrap 4 column width when using Angular 2 *ngFor

I have a container that displays search results. The layout is set up using Bootstrap columns, but there seems to be excessive padding or margin causing the results to appear very narrow. Interestingly, if I manually input each result instead of using *ngF ...

In what way can a random choice capture the correct correspondent number?

$("#question2").hide(); const options = [$(".option1"), $(".option2"), $(".option3"), $(".option4")]; let randomOption = function() { const texts = options .map(opt => opt[0].textContent) .sort(() => .5 - Math.random()); $(".option1").t ...

Ready to customize your CSS settings?

As I continue to learn .NET Core / MVC and work on my website, I am facing a challenge with removing the white space and getting the background to cover the entire page. Despite trying different approaches, such as setting the style for the opt-in compone ...

In the present technological landscape, is it still considered beneficial to place Javascript at the bottom of web pages?

As a beginner in web programming, I've recently delved into Javascript. A hot debate caught my attention - where should javascript be placed, at the top or at the bottom of a webpage? Supporters of placing it at the top argue that a slow loading time ...

What is the process for updating the label name when a file is chosen?

Check out this HTML code snippet: <input type="file" class="custom-file-input" accept="image/*" onchange="loadFile(event)" id="customFile"> <label class="custom-file-label" id="chan ...

Encountering difficulty with installing sass

I recently attempted to install node-sass and, while the installation was successful, I encountered an issue where the code in main.scss was not automatically transferred to style.css. In an attempt to resolve this issue, I deleted all related files incl ...

Illuminated container with shading

I'm struggling to style a box with a unique glow effect and shadow at the bottom. I've hit a roadblock in creating this particular effect. The glow effect I am aiming for is shown here: https://i.stack.imgur.com/i2va8.png My attempts to create ...

What is the best way to display only a specific container from a page within an IFRAME?

Taking the example into consideration: Imagine a scenario where you have a webpage containing numerous DIVs. Now, the goal is to render a single DIV and its child DIVs within an IFrame. Upon rendering the following code, you'll notice a black box ag ...

What is the process for obtaining an HTML form, running it through a Python script, and then showcasing it on the screen

I am inquiring about the functionality of html and py script. .... The user enters 3 values for trapezoidal data from the html form: height, length of side 1, and length of side 2, then clicks submit. The entered values are then sent to be calculated using ...

Interactive image sliders in a Netflix-inspired style with live previews on hover, fully compatible with Bootstrap framework

I'm looking for suggestions on Twitter Bootstrap compatible jquery plugins that can create a Netflix-style continuously scrolling image carousel with mouse-over functionality. I've tried the carousel included in the Bootstrap JS library, but it r ...

Text overlay on image sliders inside div containers

Is there a way to display div elements on top of an image slider, rather than behind it? I've tried using z-index and position: absolute with no success. Here is an example: HTML: <div id="header"> <img src="assets/images/header1.png" / ...

Tips for creating a responsive table that adjusts to the width of the column in Bootstrap/CSS

I need help adjusting my Bootstrap table to fit the width of a col-md-5 column without overflowing into the adjacent invoice template table. I attempted to use the .table-responsive class, but it didn't solve the issue. My current version is Bootstrap ...

Creating a border with a unique and specific image

Is there a way to use an image as the border for my div elements? The key requirement is that the border must be positioned outside the box without affecting its size. It's important to note that all div items have the same width, but varying heights ...

Using jQuery to remove all inline styles except for a specific one

Just a quick inquiry: Our Content Management System (CMS) utilizes CKEditor for clients to modify their websites. The front-end styles include the use of a pre tag, which we have customized to our desired appearance. However, when their team members copy a ...