In this tutorial you will learn how to make the upper menu with CSS, witch options can be changed easily.
We will start with the HTML code witch shows the menu:
Example:
How to make a horizontal navbar with CSS
![]() |
||||||||||||||||
|
|
How to make upper CSS Menu
In this tutorial you will learn how to make the upper menu with CSS, witch options can be changed easily. We will start with the HTML code witch shows the menu: Example: How to make a horizontal navbar with CSS
<a href="http://demolution.net">Link 1</a>
It won't be a problem so lets surround our menu in DIV tag . You can use ID or you can also use "class". In this Example I use ID:
<div id="nav">
That was everything you have to do with the HTML. Now it is time to process our menu in CSS Put the following code in CSS file: Example:
#nav {
Now i will explain how it works. We named the DIV in witch we surrounded our menu "nav". Our next set from CSS tells the browser how to make links in our div. The links are copied on CSS as "a". We will add a frame and a color for a background for our links. We can also change the font. Our last set in CSS will tell the browser how to show our links when we go over them with the mouse. We will make the frame darker and will change the color of the font and the background.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
Our CSS menu is ready ! Now you can change the colors to be suitable for your site and you can also change the settings. For all lazy people out there here is the combined HTML and CSS code: Example: And that is all in this tutorial for How to make upper CSS Menu. I hope this tutorial is useful for you. How to make a horizontal navbar with CSS
Post Comment |
RELATED TUTORIALS
Need a specific tutorial? Do not hesitate and submit a request! |
||||||||||||||
|
Home | Sitemap |
Terms & Privacy
© ONLINEHOWTO.net 2006-2009 |
||||||||||||||||