Log In · Register

 
CSS: image hover
pinkbmx
post Jul 26 2007, 11:15 AM
Post #1


Senior Member
***

Group: Member
Posts: 37
Joined: Jun 2006
Member No: 428,496



Say I have div A, div B and div C.

I put a picture in div A - and when hover on that picture, text on div B will appear. However, i also want div C to display none when hover that pix in div A.

If you still copy me at this point, is it possible to make div C display NONE when hover that pix??

 
 
Start new topic
Replies
pinkbmx
post Jul 26 2007, 11:22 AM
Post #2


Senior Member
***

Group: Member
Posts: 37
Joined: Jun 2006
Member No: 428,496



the code for div a and b so far is something like this.

QUOTE
<style>

div.AAA {background-color:red;
position:absolute;
top:25px;
left:110px;
width:100px;
height:150px;}

div.BBB { display:none;
background-color:#ffffcc;
position:relative; top:25px; left:200px;
width:140px;
font-size:smaller;
text-align:center;
padding:5px;
margin:0 10px;
border: 1px solid black; }

div.AAA:hover + div.BBB {display:block; }

</style>
 

Posts in this topic
pinkbmx   CSS: image hover   Jul 26 2007, 11:15 AM
pinkbmx   the code for div a and b so far is something like ...   Jul 26 2007, 11:22 AM
_cheekz_   wow! what a headache, but where is div C in th...   Jul 27 2007, 04:39 PM
digitalfragrance   Theoretically, you can place DIV B underneath the ...   Jul 27 2007, 04:41 PM
pinkbmx   hmm div C is right under div B ... and they both a...   Jul 27 2007, 11:01 PM
digitalfragrance   You can accomplish half of what you want, but not ...   Jul 28 2007, 01:24 AM


Closed TopicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members: