Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 3 of 3
  1. #1
    Senior Member
    Join Date
    May 2003
    Location
    UK
    Posts
    2,354
    Member #
    1326
    Never really toyed with this much, what I want to achieve is.

    1: I have a link in a div, I want to use the :hover of that link to set another div to be visible (visibility: visible)

    This sounds not achievable without using JS, but heres my proposed markup.

    HTML Code:
    <div id="link"><a href="#">hover over me</a></div>
    
    <div id="hidden_div">You cannot see me unless you hover over the link.</div>
    Obviously the hidden_div will be set to hidden in my CSS.

    Cheers.

  2.  

  3. #2
    Senior Member Shani's Avatar
    Join Date
    Nov 2004
    Posts
    1,140
    Member #
    8171
    Yep. In order to change the CSS attribute, you'll need Javascript. The way I can think to do it without javascript is to make it an actual rollover.
    Shani

    I have an eye for detail like you'd never believe.

  4. #3
    Senior Member
    Join Date
    Jun 2005
    Location
    Atlanta, GA
    Posts
    4,146
    Member #
    10263
    Liked
    1 times
    While that exact structure isn't possible, if you made the hidden div a sibling and used the sibling selector, it would work in some browsers. IE, sadly, is not one of those (at least not pre-7).


Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 10:26 AM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com