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 31, 2026, 4:05 pm

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

Possibly Related Threads...
Thread Author Replies Views Last Post
  User Name problem william northam 1 1717 October 24, 2020 at 6:43 am
Last Post: BrianSoddingBoru4
  emoticon problem fixed -ignore ignoramus 16 4815 October 6, 2017 at 11:30 pm
Last Post: Edwardo Piet
  Problem with Alerts Athene 4 2472 June 21, 2016 at 3:01 pm
Last Post: account_inactive
  Problem posting with Android 4.2 God of Mr. Hanky 12 5965 February 4, 2016 at 3:22 am
Last Post: SteelCurtain
  Problem with the server. Excited Penguin 11 4626 January 5, 2016 at 2:20 pm
Last Post: vorlon13
  Problem with Religious Preferences TheoneandonlytrueGod 9 3178 November 20, 2015 at 9:02 am
Last Post: robvalue
  Connection problem robvalue 11 3334 June 1, 2015 at 7:32 pm
Last Post: vorlon13
  Change of Email Problem Vox Populi 1 1683 March 28, 2015 at 12:41 am
Last Post: Jackalope
  Is there any problem with the rate-function? Whateverist 9 5700 July 30, 2014 at 2:32 pm
Last Post: Bibliofagus
  Problem with using bold tags inside url tags Angrboda 4 2173 February 21, 2014 at 6:51 pm
Last Post: fr0d0



Users browsing this thread: 1 Guest(s)