Our server costs ~$56 per month to run. Please consider donating or becoming a Patron to help keep the site running. Help us gain new members by following us on Twitter and liking our page on Facebook!
Current time: August 20, 2025, 2:43 am

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Opacity problem
#5
RE: Opacity problem
(March 15, 2010 at 5:59 pm)Tiberius Wrote: But they aren't hidden...

Comment tags...which they vaguely resemble are these:

<!-- COMMENT GOES HERE -->

I'm not sure what you mean about hover and visited. Visited is a special function only for links. Hover can be applied to anything.



Mmm, I havn't added the hyphens in <!--comment--> but rather used it like <!comment> and it still worked on my page. It's not the right way though so thanks for pointing it out.

The effect that I would like to create is to have my menu faded (opacity say 40%) and then when you hover the mouse over the picture it becomes clear (opacity 100%). Each "block"/link contains a picture background with the text (i.e. "about", "home", etc.) on top of the picture. I would like the text to be bold at all times even though the picture changes in opacity when the mouse hovers over it. The text changes colour once you've visited the link or once it is active. I think you've nailed it with your suggestion to rather have the menu as seperate divs and then to program it with css.

The problem now comes in that the text inherits the opacity and also becomes faded so I think it might be an idea to create 2 sets of divs sitting on top of each other and using x-positioning. That way the text will be bold at all times and only change colour once you've "visited" the link or once you've clicked on it and it is "active". That is what I meant with link, visited, hover and active and not sure if all 4 will work with divs and css (link, hover, visited, active)
a:link {color:green} /* unvisited link */
a:visited {color:blue} /* visited link */
a:hover {color:yellow} /* mouse over link */
a:active {color:red} /* selected link */

I'll have a play around with the divs and see what I can come up with. Thanks dude
Spinoza Wrote:God is the Asylum of Ignorance
Reply



Messages In This Thread
Opacity problem - by Craveman - March 14, 2010 at 4:49 pm
RE: Opacity problem - by Tiberius - March 14, 2010 at 5:22 pm
RE: Opacity problem - by Craveman - March 15, 2010 at 5:49 pm
RE: Opacity problem - by Tiberius - March 15, 2010 at 5:59 pm
RE: Opacity problem - by Craveman - March 16, 2010 at 6:01 pm



Users browsing this thread: 1 Guest(s)