Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    New to the CF scene
    Join Date
    Apr 2010
    Location
    Ancaster, Ontario
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Controlling the visibility of images or divs using css

    I would like to rollover a word in a paragraph and have either an img or div appear.
    I tried
    Code:
    #mainText:hover #mainDescription{visibility:true;}
    to no avail.
    Suggestions.... I need to do this in a min of 10 instances on the screen.

    Thans in advance,
    Matt

  • #2
    The Apostate Apostropartheid's Avatar
    Join Date
    Oct 2007
    Posts
    3,215
    Thanks
    16
    Thanked 265 Times in 263 Posts
    Look up the visibility CSS property and make a careful note of what values it can take. Hint: true isn't one of them.

  • #3
    New to the CF scene
    Join Date
    Apr 2010
    Location
    Ancaster, Ontario
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Oops, just used to using that response, I actually coded it correctly using the 'visible' argument.
    The best I can do is to get the div mainText to dissapear. When I add the mainDescription div the whole thing stops working.

  • #4
    The Apostate Apostropartheid's Avatar
    Join Date
    Oct 2007
    Posts
    3,215
    Thanks
    16
    Thanked 265 Times in 263 Posts
    A link would make the problem a lot easier to see.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •