Basic & Simple HTML-CSS Menu show/hide SubMenu

This is my tutorial in making basic & simple HTML/CSS Menu that shows & hide SubMenus on Mouse Over. There are many other tutorials out there that maybe be better but quite complicated and heavy for beginners.

here it goes:

Create a style tag for your menu, dont forget the html/head/body tags – remember to put your stylesheet inside head tag.



Leave it without any parameters/option for now (later do as u wanted 🙂

next, add  the menu list

.menu li{}

if you want horizontal menu use float:left on list tags <li> else the default appearance will be vertical menu. then add your other style of your liking such as width, height, background-color/images, etc. (later recommended)

.menu li{ float:left}

next will be your submenu, hide it using display:none (or visibility: hidden for CSS3)

.menu ul{display:none}

Remember your main menu is at <li> tags and it holds your submenus at <ul> tags




Now here comes the magic that will reveal the submenu when the mouse is located over the menu (hovering they say)

add the following to your style

.menu li:hover ul{display: block;}

then again, add your other style of your liking such as width, height, background-color/images, etc.

see it live at

test it – submenu will be in – now u see now u don’t – state 🙂


Final code:



.menu li{
display: block;
width: 200px;
height; 50px;
.menu ul{
display: none;
.menu li:hover ul{
display: block;
background-color: blue;

<ul>home 1</ul>
<ul>home 2</ul>




We offer free training to schools(college/univ/highschools), government agencies, and even private companies on 3d modelling for interactive virtual tour, all you need is invite team for 2-3 days of training, and take care of the team travel expenses/lodging/meal. The free training value is worth Php 100,000.00++ (email us contact[at] . The output virtual tour will be hosted  for FREE at 3d simulation web server, you don’t have to worry on buying a 3d interactive server & software or bandwidth/web space costing.

Job Vacancy Php 30,000.00 / month!!!

We are looking for Expert Marketing Executive Salary Php 30,000/month plus plus!!! Qualifications: Decent looking with pleasing personality. Very Intelligent “such as can sell ice cream in Alaska”. Must have a car and laptop. Living in Metro Manila or nearby. Please email with subject: Expert Marketing Executive Applicant

We are giving away Free Websites!

Yes! Free websites with your own domain name!
How to avail this? Email us the following info:

1. Your full name and contact info
2. About the website you wish to have (purpose, objectives etc.)
3. Your desired domain name (e.g.

We will contact you if you qualify in our program.
Continue reading

the 1st Philippine 3d interactive Mall

Have u ever bought an item online? maybe on ebay or any buy and sell websites? Yes, i think you already did.

Have u seen the products in an awesome 3d interactive interface? Yes, i think you already did.

3d mallBut, have you ever see a buy and sell website that showcase their products in a very nice 3d interactive interface? Where you will be able to customized the product (maybe color, size, any options available [its like doing the personalization yourself before buying the product]) before purchasing it.

Well, the future of buying and selling online is near, and started here in the Philippines!

Team announces the coming full launching of the first Philippine 3d interactive mall!

Be one of the first to walk through it! click here preview 3d mall


We are now inviting merchants and cosigners to join this online break through! We will release the entire floor plan for reservation of 3d stall/slots. We also create 3d interactive products (shoes, laptops/computers, kitchen appliances/utensils and every thing that can be designed in 3d )

Please contact us at for reservation

Let sponsors pays up your web site bills!

Let  sponsors pays up your web site bills!

Yes, its possible! Team will assist you find sponsors to pay up for your website’s hosting, domain name registration etc!

Through our program “find me a web benefactor”.

How to avail this program? Email us the following with the subject “find me a web benefactor”:

  1. Your website url
  2. Website age (how many years its been active)
  3. Website description
  4. Contact information (address, tel/mobile numbers)

Email it to contact [a] artsdigitalmedia [.] com