Showing posts with label Drop Down Menu in HTML and CSS. Show all posts
Showing posts with label Drop Down Menu in HTML and CSS. Show all posts

Friday, October 11, 2019

Drop Down Menu in HTML and CSS

In this article, I would like to share the code written by my friend and fellow software engineer sir Ernel Fadriquilan

I am currently accepting programming work, IT projects, school and application development, programming projects, thesis and capstone projects, IT consulting work, computer tutorials, and web development work kindly contact me in the following email address for further details.  If you want to advertise on my website kindly contact me also in my email address also. Thank you.

My email address is the following jakerpomperada@gmail.com, jakerpomperada@aol.com, and jakerpomperada@yahoo.com.

My mobile number here in the Philippines is 09173084360.

My telephone number at home here in Bacolod City, Negros Occidental Philippines is  +63 (034) 4335675.

Here in Bacolod I also accepting computer repair, networking and Arduino Project development at a very affordable price.



Background Image of our web page




Sample Program Output 


Program Listing

index.html

<html>
<head>
<link rel="icon" href="images/pat.ico" type="image/x-icon" />
<link rel="shortcut icon" href="images/pat.ico" type="image/x-icon" />
</head>
<link href='style.css' rel='stylesheet'>
<ul>
<li><a>Home</a></li>
<li><a>About</a>
<ul>
<li><a>History</a></li>
<li><a>Services</a></li>
<li><a>Mission &amp; Vision</a></li>
<li><a>Resources</a></li>
</ul>
</li>
<li><a>Things to do</a>
<ul>
<li><a>Activities</a></li>
<li><a>Parks</a></li>
<li><a>Shops</a></li>
<li><a>Events</a></li>
</ul>
</li>
<ul>
            <li><a>Contact us</a></li>
        </ul>
<ul>
<li><a>News</a></li>
</ul>

</html>


style.css

body {
background: url('Background/nature.jpg') no-repeat;
background-size: cover;
font-family: Arial;
color: white;


padding:50px 80px;
font-family:"Lucida Grande","bitstream vera sans","trebuchet ms",sans-serif,verdana;


/* get rid of those system borders being generated for A tags */
a:active {
  outline:none;
}

:focus {
  -moz-outline-style:none;
}

}

ul {
margin:0px;
padding:0px;
list-style: none;
}
ul li {
float:left;
width:200px;
height:40px;
background-color:black;
opacity: .8;
line-height: 40px;
text-align: center;
font-size: 20px;
margin-right: 2px;
}
ul li a {
text-decoration: none;
color:white;
display:block;
}
ul li a:hover{
background-color:blue;
}
ul li ul li {
display:none;
}
ul li:hover ul li {
display:block;
}