You are viewing our Forum Archives. To view or take place in current topics click here.
how would i change this div background when i hover over..
Posted:

how would i change this div background when i hover over..Posted:

blueninjn
  • Junior Member
Status: Offline
Joined: Dec 28, 201310Year Member
Posts: 85
Reputation Power: 3
Status: Offline
Joined: Dec 28, 201310Year Member
Posts: 85
Reputation Power: 3
a part of my navigation (photoslider nav) and change the photoslider background
#2. Posted:
RapidzMoose
  • V5 Launch
Status: Offline
Joined: Mar 02, 201212Year Member
Posts: 49
Reputation Power: 1
Status: Offline
Joined: Mar 02, 201212Year Member
Posts: 49
Reputation Power: 1
Hey buddy. In your CSS, you can do this:


.yourDiv:hover {
   background-color: orange;
}
#3. Posted:
blueninjn
  • Junior Member
Status: Offline
Joined: Dec 28, 201310Year Member
Posts: 85
Reputation Power: 3
Status: Offline
Joined: Dec 28, 201310Year Member
Posts: 85
Reputation Power: 3
RapidzMoose wrote Hey buddy. In your CSS, you can do this:


.yourDiv:hover {
   background-color: orange;
}

i need it so when i hover over a link it will change a different div
#4. Posted:
iyop45
  • Prospect
Status: Offline
Joined: Apr 15, 201113Year Member
Posts: 614
Reputation Power: 83
Status: Offline
Joined: Apr 15, 201113Year Member
Posts: 614
Reputation Power: 83
blueninjn wrote
RapidzMoose wrote Hey buddy. In your CSS, you can do this:


.yourDiv:hover {
   background-color: orange;
}

i need it so when i hover over a link it will change a different div

Assuming the link and the div are adjacent elements or at least wrapped within the same parent you can use ~ or + selectors accordingly:
[ Register or Signin to view external links. ]
#5. Posted:
blueninjn
  • Junior Member
Status: Offline
Joined: Dec 28, 201310Year Member
Posts: 85
Reputation Power: 3
Status: Offline
Joined: Dec 28, 201310Year Member
Posts: 85
Reputation Power: 3
iyop45 wrote
blueninjn wrote
RapidzMoose wrote Hey buddy. In your CSS, you can do this:


.yourDiv:hover {
   background-color: orange;
}

i need it so when i hover over a link it will change a different div

Assuming the link and the div are adjacent elements or at least wrapped within the same parent you can use ~ or + selectors accordingly:
[ Register or Signin to view external links. ]

doesn't work here the code http:// pastebin.com/LaNbTixB
Jump to:
You are viewing our Forum Archives. To view or take place in current topics click here.