Google byebahara like CSS menu design.

Among those who are reading this post can be found who does not accept that Google is not any service. Google menu bar so you do not have to be a stranger to. Byebahara menu bar is the kind of Google.

Click on the link to see the live view . The css byebahara I’ll share how to make the menu.
The easiest way to create any menu anaaradara list (<ul> <li> </ li> </ ul> list) after the bar has been converted into the css byebahara. If the menu the next time you want to change the menu (the menu to add a new link or omitted), it will be easy.
The first part of your HTML div or the menu where you want to anaaradara the list (<ul> <li>) like the following code in the form of links to pages that you want to keep your place on the menu.
<Ul>
<Li> <a href=”#”> Home </a> </ li>
<Li> <a href=”#”> About Us </a> </ li>
<Li> <a href=”#”> Picture </a> </ li>
<Li> <a href=”#”> Blog </a> </ li>
<Li> <a href=”#”> Contact </a> </ li>
</ Ul>
If you do not see a lot of css code will be the same.
You can add new menu items, just <ul> </ ul> at tega you inside a <li> <a href=”#”> Contact </a> </ li> line will be. The <a href = “The link is here”> write the name of the page is a new page link </a>.
Now you have to change css byebahara each of Google’s menu.
How are the css to target the HTML if you do not know if you can find on Google. I write about it the other day.
This is a list of bullet points, one in front of each link. If you want to pretty up the menu you will find. For a list-style: none;Add code here.
ul li {
list-style: none;
}
Each linked to the target line of the menu, it is now down from the position as it will go. This is the easiest method is to float in. The list to the left or right to float. If you are unable to catch up with your ideas about the target css for my css code will be the same.
ul li a {
float: left;
}
Ul li a target with the css style of the links to be able to carry out the sabakayata. That’s why we have to create a menu bar at the <ul> <li> Do byebahara list.
The css style seats in the code to add to your ul li a
text-decoration: none;
color: # 666;
padding: 6px 15px;
border: 1px solid #CCC;
background-image: -moz-linear-gradient (-90deg, # f4f4f4, # f1f1f1););
margin-right: -1px;
Would like to see it.
ul li a {
float: left;
text-decoration: none;
color: # 666;
padding: 6px 15px;
border: 1px solid #CCC;
background-image: -moz-linear-gradient (-90deg, # f4f4f4, # f1f1f1););
margin-right: -1px;
}
The text-decoration: none; Let’s work out the link below lainatake.
color: # 666; The color of the font of your code.
padding: 6px 15px; With the code in place for you to click on the link in the menu are increasing. First you have to click on the article could start now baile 6px up and down and left and right when you click the link it will act as 15px. 6px 6px 15px here means above and below and to the left and right 15px. If you want the padding: 6px 15px 6px 15px; Thus, you can enter  here 6px 15px 6px 15px on the bottom right and left respectively standard .
border: 1px solid #CCC; With this code, each linked to a border around the outside of it. Here is the border of 1px wide, solid type of the border and the border of #CCC color.
background-color: # F7F7F7; This links back to the color # F7F7F7; You can color the picture or gradient byebahara.
margin-right: -1px; This is a menu to be closing the gap as well as other menus. 1px border around each menu in the menu as well, so that there is the border between the two 2px. And 2px is also the border between the two is the same.
So I have -1px margin-right’s value. That 1px up right next to it there will be a longer one. It is in many ways the more it seems to me easier. If you want a positive value, and one to give away. margin-right: 10px; When you link a menu 10px away from you. I would like to see it.
The size of the width of each menu here you can can pay with a fixed value.
Then add the code
ul li a: hover {
background-color: #EEEEEE;
border: 1px solid # C5C5C5;
box-shadow: 0px 0px 2px #CCC;
}
Here ul li a: hover to: hover This is the style of the menu, then it would be in the hover state. When you hover the mouse over it, which means that the State will.
The background color will change the color of the border. And will be added to the box shadow.
box-shadow: 0px 0px 2px #CCC; Here at the box shadow 0px 0px 2px #CCC 0px 0px 2px is the offset of the Color Saturation #CCC.
If instead of 0px 0px 2px 2px 2px down the right and the box shadow will take place. If -2px -2px box shadow will take place on the top and right 2px.
HTML Together
<Div id = “nav”>
<Ul>
<Li> <a href=”#”> Home </a> </ li>
<Li> <a href=”#”> About Us </a> </ li>
<Li> <a href=”#”> Picture </a> </ li>
<Li> <a href=”#”> Blog </a> </ li>
<Li> <a href=”#”> Contact </a> </ li>
</ Ul>
</ Div>
<Ul> tyega the <div id = “nav”> and </ ul> tyega the </ div> to add it in a div with the id nav is available.
Together with the css style
#nav {
font-family: Arial, Helvetica, sans-serif;
font-weight: normal;
font-size: 12px;
}
#nav ul {
margin: 0px;
padding: 0px;
}
#nav ul li {
list-style: none;
}
#nav ul li a {
float: left;
text-decoration: none;
color: # 666;
padding: 6px 15px;
border: 1px solid #CCC;
background-color: # F7F7F7;
margin-right: -1px;
}
#nav ul li a: hover {
background-color: #EEEEEE;
border: 1px solid # C5C5C5;
box-shadow: 0px 0px 2px #CCC;
}
Here are the css rule before it is #nav of your HTML on your menu div id.
#nav {
font-family: Arial, Helvetica, sans-serif;
font-weight: normal;
font-size: 12px;
}
Div id nav charge at the new css rule for the font is Arial byebahara. Google is byebahara fonts. font-size 12px font weight to normal and have been kept.
#nav ul {
margin: 0px;
padding: 0px;
}
The new css rule at the margin: 0px, padding: 0px anaaradara rewind margin and padding has been zero. It is a matter of css reset, and one day I will write about it.
I wish to write about css, but not in the habit of writing blog posts are written. If you would understand the problem, you’ll try to help.
Click on the link to see the live view .
Previous
Next Post »