Follow us on Twitter!
Follow us on Facebook!
 

Go Back   Pixtus - Photography Forum, Photographers, Photo Tips > Business Discussion > Website Talk


One more blog question (hovering/changing colors on menu)

This is a discussion on One more blog question (hovering/changing colors on menu) within the Website Talk forums, part of the Business Discussion category; I want the colors to change if someone has clicked on the link or as the mouse passes over it. ...

Reply
 
LinkBack Thread Tools Display Modes
  (#1) Old
Senior Member
 
semperaggie's Avatar
 
Posts: 413
Join Date: Feb 2008
Location: Jacksonville, NC,
Real First Name: Heather
Camera: 5D, xti
Can Others Edit My Photos: Yes
iTrader Rating: 0

Likes Received LIKES Received: 0
Likes Given LIKES Given: 0
One more blog question (hovering/changing colors on menu) - 05-31-2009, 05:08 PM


I want the colors to change if someone has clicked on the link or as the mouse passes over it.

I was using this site:

http://tips-for-new-bloggers.blogspo...und-color.html but the menu links are still exactly the same. I posted the code from the site that is in my html below if anyone has any ideas what I am doing wrong.

/* Header
-----------------------------------------------
*/

#newnavbar ul li{
font-size:100%;
list-style-type: none;
display:inline;
padding:0px;
margin:10px;
border:0px solid;
}

#newnavbar li a{
color:#000000;
}

#newnavbar li a:visited {
color:#736F6E;
}

#newnavbar li a:hover {
color: #F88017;
background:#98AFC7;
}
Reply With Quote
Sponsored Links

Premium Members do not see Google advertisements. SIGN UP today and help support our community.
  (#2) Old
Forum Master
 
ronocnikral's Avatar
 
Posts: 1,941
Join Date: May 2009
Location: Wisteria Lane, Maine
Real First Name: Ron
Camera: Canon/Bronica/Mamiya TLR
Can Others Edit My Photos: Yes
iTrader Rating: 4

Likes Received LIKES Received: 43
Likes Given LIKES Given: 5
06-02-2009, 10:37 AM


hmmm...i am a little rusty. here is my personal blog and it seems to be doing what you would like.

here is the code where you control the colors:

/* Variable definitions
====================
<Variable name="bgcolor" description="Page Background Color"
type="color" default="#000" value="#191919">
<Variable name="textcolor" description="Text Color"
type="color" default="#ccc" value="#ffffe6">
<Variable name="linkcolor" description="Link Color"
type="color" default="#9ad" value="#cccca3">
<Variable name="pagetitlecolor" description="Blog Title Color"
type="color" default="#ccc" value="#5a6f1b">
<Variable name="descriptioncolor" description="Blog Description Color"
type="color" default="#777" value="#400058">
<Variable name="titlecolor" description="Post Title Color"
type="color" default="#ad9" value="#5a6f1b">
<Variable name="bordercolor" description="Border Color"
type="color" default="#333" value="#ffffff">
<Variable name="sidebarcolor" description="Sidebar Title Color"
type="color" default="#777" value="#cccccc">
<Variable name="sidebartextcolor" description="Sidebar Text Color"
type="color" default="#999" value="#cccccc">
<Variable name="visitedlinkcolor" description="Visited Link Color"
type="color" default="#a7a" value="#ffffcc">
<Variable name="bodyfont" description="Text Font"
type="font" default="normal normal 100% 'Trebuchet

the "value" at the end is your color. there are tables somewhere online that you can scroll over a color and then they will give you the value. I can help later (like tonight) if you need further help.
Reply With Quote
  (#3) Old
Junior Member
 
gumchain's Avatar
 
Posts: 41
Join Date: Jun 2006
Location: Houston, Texas
Real First Name: Joanna
Camera: Nikon D300
Can Others Edit My Photos: Yes
iTrader Rating: 1

Likes Received LIKES Received: 0
Likes Given LIKES Given: 0
06-02-2009, 03:39 PM


I am not an expert on html and css, but my suggestion would be to take the li out of the code. I don't think you can put both li and a in the same expression.

So you want something like this:
#newnavbar a{ } in your css

and in your html:
<div class="newnavbar">
<a href=.....
</div>


I hope that helps.

---------------------------
Photobook Solutions | Blog
Nikon D300, Nikon 18-200mm VR, Nikon 70-300mm AF-G, Sigma 30mm f/1.4, SB-600, various filters, tripod, monopod, and other accessories
Reply With Quote
  (#4) Old
Senior Member
 
semperaggie's Avatar
 
Posts: 413
Join Date: Feb 2008
Location: Jacksonville, NC,
Real First Name: Heather
Camera: 5D, xti
Can Others Edit My Photos: Yes
iTrader Rating: 0

Likes Received LIKES Received: 0
Likes Given LIKES Given: 0
06-03-2009, 03:48 PM


Thanks, Conor. I appreciate the help!.

I was able to change some of my font colors but my nav bar still isn't cooperating

Thanks, Joanna. I'll play with that!

semperaggie added 5 Minutes and 51 Seconds later...Double Post Merged Below

well, nothing really changed until I took out this line: list-style-type: none;
as it seemed contrary to what I wanted

Now I get a box of color over my menu when I hover so I guess that is an improvement

Last edited by semperaggie; 06-03-2009 at 03:54 PM.. Reason: Automerged Doublepost
Reply With Quote
  (#5) Old
Junior Member
 
gumchain's Avatar
 
Posts: 41
Join Date: Jun 2006
Location: Houston, Texas
Real First Name: Joanna
Camera: Nikon D300
Can Others Edit My Photos: Yes
iTrader Rating: 1

Likes Received LIKES Received: 0
Likes Given LIKES Given: 0
06-04-2009, 10:26 AM


I hope you are able to get it to work out.

---------------------------
Photobook Solutions | Blog
Nikon D300, Nikon 18-200mm VR, Nikon 70-300mm AF-G, Sigma 30mm f/1.4, SB-600, various filters, tripod, monopod, and other accessories
Reply With Quote
Reply

Tags
blog, colors, hovering or changing, menu, question

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



Visit Our Sponsors
 

Google Sponsors

Premium Members do not see Google advertisements. SIGN UP today and help support our community.

Copyright ©2004 - 2011, Abel Longoria - www.Pixtus.com
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.