Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6815413
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T20:48:14+00:00 2026-05-26T20:48:14+00:00

Good afternoon, My current task is to create several stylesheets for a website. One

  • 0

Good afternoon,

My current task is to create several stylesheets for a website. One of the websites styles requires me to create a drop-down menu, I however am not allowed to change the HTML code at all, so basically I’m asked to create a drop-down like menu with CSS only.

Here is the HTML code I have to display in form of a drop-down menu:

<div id="global-nav">
<ul>
<li><a href="#products">Products</a>
  <ul>
  <li><a href="#widgets">Widgets</a></li>
  <li><a href="#sites">Sites</a></li>
  <li><a href="#gadgets">Gadgets</a></li>
  </ul>
</li>
</ul>

There however are different requirements as well:
There shouldn’t be any dots or circles preceding each list item.

I’m wondering whether it is possible to accomplish this task with CSS only or not.
Is there any way I can do this with CSS?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T20:48:14+00:00Added an answer on May 26, 2026 at 8:48 pm

    Vertical menu with horizontal expansion

    jsBin demo

    *{padding:0;margin:0;}
    body{font:16px/1 sans-serif}
    
    
    /*VERTICAL MENU*/
    nav.vertical{
      position:relative;
      width:200px;
    }
    
    /* ALL UL */
    nav.vertical ul{
      list-style: none;
    }
    /* ALL LI */
    nav.vertical li{
      position:relative;
    }
    /* ALL A */
    nav.vertical a{
      display:block;
      color:#eee;
      text-decoration:none;
      padding:10px 15px;
      background:#667;
      transition:0.2s;
    }
    /* ALL A HOVER */
    nav.vertical li:hover > a{
      background:#778;
    }
    
    /* INNER UL HIDE */
    nav.vertical ul ul{
      position:absolute;
      left:0%;
      top:0;
      width:100%;
      visibility:hidden;
      opacity:0;
      transition: transform 0.2s;
      transform: translateX(50px);
    }
    /* INNER UL SHOW */
    nav.vertical li:hover > ul{
      left:100%;
      visibility:visible;
      opacity:1;
      transform: translateX(0px);
    }
    <nav class="vertical">
      <ul>
        <li><a href="">Home</a></li>
        <li><a href="#">Products +</a>
          <ul>
            <li><a href="#">Widgets</a></li>
            <li>
              <a href="#">Sites +</a>
              <ul>
                <li><a href="#">Site 1</a></li>
                <li><a href="#">Site 2</a></li>
              </ul>
            </li>
            <li>
              <a href="#">Gadgets +</a>
              <ul>
                <li><a href="#">Gadget 1</a></li>
                <li><a href="#">Gadget 2</a></li>
              </ul>
            </li>
          </ul>
        </li>
        <li><a href="">Contact</a></li>
      </ul>
    </nav>

    Vertical menu (mobile only)

    this one might best suit for mobile (smaller screens CSS) otherwise the show/hide would troll with User Experience

    jsBin demo

    *{padding:0;margin:0;}
    body{font:16px/1 sans-serif}
    
    
    /*VERTICAL MENU*/
    nav.vertical{
      position:relative;
      background:#667;
    }
    
    /* ALL UL */
    nav.vertical ul{
      list-style: none;
    }
    /* ALL LI */
    nav.vertical li{
      position:relative;
    }
    /* ALL A */
    nav.vertical a{
      display:block;
      color:#eee;
      text-decoration:none;
      padding:10px 15px;
      transition:0.2s;
    }
    /* ALL A HOVER */
    nav.vertical li:hover > a{
      background:#778;
    }
    
    /* INNER UL HIDE */
    nav.vertical ul ul{
      background:rgba(0,0,0,0.1);
      padding-left:20px;
      transition: max-height 0.2s ease-out;
      max-height:0;
      overflow:hidden;
    }
    /* INNER UL SHOW */
    nav.vertical li:hover > ul{
      max-height:500px;
      transition: max-height 0.25s ease-in;
    }
    <nav class="vertical">
      <ul>
        <li><a href="#">Home</a></li>
        <li><a href="#">Services +</a>
          <ul>
            <li><a href="#">Service 1</a></li>
            <li><a href="#">Service 2</a></li>
            <li><a href="#">Service 3</a></li>
          </ul>
        </li>
        <li><a href="#">Products +</a>
          <ul>
            <li><a href="#">Widgets</a></li>
            <li>
              <a href="#">Sites +</a>
              <ul>
                <li><a href="#">Site 1</a></li>
                <li><a href="#">Site 2</a></li>
              </ul>
            </li>
            <li><a href="#">Gadgets +</a>
              <ul>
                <li><a href="#">Gadget 1</a></li>
                <li><a href="#">Gadget 2</a></li>
              </ul>
            </li>
          </ul>
        </li>
        <li><a href="">Contact</a></li>
      </ul>
    </nav>
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Good afternoon one and all, I've recently deployed a website on a remote server,
Good afternoon, This should be an easy one. I've done the cookie-cutter default ASP.NET
Good afternoon. I have a Repeater with a ItemTemplate that prints one column with
Good afternoon, I have a web query in Excel 2002 going against a web
Good afternoon, with all the buzz around the iPhone / AppStore etc, I felt
Good afternoon, I am currently in the very early phase of a new project
Good afternoon, I'm working on a project for my company to run an update
Good afternoon, I'm having a problem with a section of code I'm working on
Good afternoon, I have a quick 'top level' question regarding the usage of Facebook
Good Afternoon, A customer has provided me with a spreadsheet file his team uses

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.