Making nav bar changed when rolledover?
4 posters
Page 1 of 1
Making nav bar changed when rolledover?
how do you make the nav bar so when you roll your mouse over it, it changes to something different? An examlpe is on this forum. when you roll over "Home" button it changes from blue to orange.
Last edited by Agent24 on 4/6/2010, 17:20; edited 1 time in total
Agent24- Forumember
- Posts : 813
Reputation : 72
Language : English, Spanish
Location : California
Re: Making nav bar changed when rolledover?
I believe you need to edit your CSS
AlphaPkz- Forumember
- Posts : 251
Reputation : 0
Language : English | Cantonese | Mandarin
Re: Making nav bar changed when rolledover?
do you know what i need to put?AlphaPkz wrote:I believe you need to edit your CSS
Agent24- Forumember
- Posts : 813
Reputation : 72
Language : English, Spanish
Location : California
Agent24- Forumember
- Posts : 813
Reputation : 72
Language : English, Spanish
Location : California
Agent24- Forumember
- Posts : 813
Reputation : 72
Language : English, Spanish
Location : California
Re: Making nav bar changed when rolledover?
bump..........
Agent24- Forumember
- Posts : 813
Reputation : 72
Language : English, Spanish
Location : California
Re: Making nav bar changed when rolledover?
While I do not approve of simply giving you the code as I've seen nothing to indicate you'd either understand or have attempted to find it yourself, this forum is about helping others so I will simply give you a couple of examples.
Without knowing the forum version you are using I am forced to be vague but for a css roll-over menu you would use html such as the following:
Without knowing the forum version you are using I am forced to be vague but for a css roll-over menu you would use html such as the following:
- Code:
<div id="main-nav">
<ul>
<li><a href="#" class="home"><span>Home</span></a></li>
<li><a href="#" class="about"><span>About us</span></a></li>
<li><a href="#" class="faq"><span>F.A.Q.</span></a></li>
<li><a href="#" class="contact"><span>Contact</span></a></li>
</ul>
</div>
- Code:
<style type="text/css">
#main-nav{
width:400px;
height:50px;
margin:0 auto;
background:#acacac url(img/menu-bg.jpg) no-repeat;
}
#main-nav ul{
border: 0;
margin: 0;
padding: 0;
list-style-type: none;
text-align: center;
clear: left;
}
#main-nav ul li{
display: block;
float: left;
text-align: center;
padding: 0;
margin: 0;
}
#main-nav ul li a span{
display:none;
}
#main-nav ul li a{
width:100px;
height:50px;
margin:0px;
padding:0px;
display: block;
}
/* -- Hovers -- */
#main-nav ul li a.home:hover{
background: url(img/menu-bg.jpg) 0px -50px;
}
#main-nav ul li a.about:hover{
background: url(img/menu-bg.jpg) -100px -50px;
}
#main-nav ul li a.faq:hover{
background: url(img/menu-bg.jpg) -200px -50px;
}
#main-nav ul li a.contact:hover{
background: url(img/menu-bg.jpg) -300px -50px;
}
</style>
harvengure- Forumember
- Posts : 86
Reputation : 0
Language : English
Re: Making nav bar changed when rolledover?
harvengure wrote:While I do not approve of simply giving you the code as I've seen nothing to indicate you'd either understand or have attempted to find it yourself, this forum is about helping others so I will simply give you a couple of examples.
Without knowing the forum version you are using I am forced to be vague but for a css roll-over menu you would use html such as the following:And then style it with the following CSS placed in the head section of your html:
- Code:
<div id="main-nav">
<ul>
<li><a href="#" class="home"><span>Home</span></a></li>
<li><a href="#" class="about"><span>About us</span></a></li>
<li><a href="#" class="faq"><span>F.A.Q.</span></a></li>
<li><a href="#" class="contact"><span>Contact</span></a></li>
</ul>
</div>While if you wish and have the patients to use jQuery, someone has a very good tutorial on your desired result here.
- Code:
<style type="text/css">
#main-nav{
width:400px;
height:50px;
margin:0 auto;
background:#acacac url(img/menu-bg.jpg) no-repeat;
}
#main-nav ul{
border: 0;
margin: 0;
padding: 0;
list-style-type: none;
text-align: center;
clear: left;
}
#main-nav ul li{
display: block;
float: left;
text-align: center;
padding: 0;
margin: 0;
}
#main-nav ul li a span{
display:none;
}
#main-nav ul li a{
width:100px;
height:50px;
margin:0px;
padding:0px;
display: block;
}
/* -- Hovers -- */
#main-nav ul li a.home:hover{
background: url(img/menu-bg.jpg) 0px -50px;
}
#main-nav ul li a.about:hover{
background: url(img/menu-bg.jpg) -100px -50px;
}
#main-nav ul li a.faq:hover{
background: url(img/menu-bg.jpg) -200px -50px;
}
#main-nav ul li a.contact:hover{
background: url(img/menu-bg.jpg) -300px -50px;
}
</style>
i have researched it and i found one code but when i insert it, nothing happens
Agent24- Forumember
- Posts : 813
Reputation : 72
Language : English, Spanish
Location : California
Re: Making nav bar changed when rolledover?
Did the code I gave you work?
harvengure- Forumember
- Posts : 86
Reputation : 0
Language : English
Re: Making nav bar changed when rolledover?
Yes it did thanks
I forgot to mark this solved
Solved
I forgot to mark this solved
Solved
Agent24- Forumember
- Posts : 813
Reputation : 72
Language : English, Spanish
Location : California
Similar topics
» Making Topics in GD > Making replies all over forum
» Changed name but tab still has old name
» Why ads are changed?
» Katt's Creation Fully But Customized A Little Bit
» Changed url
» Changed name but tab still has old name
» Why ads are changed?
» Katt's Creation Fully But Customized A Little Bit
» Changed url
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum