How to make more divs appear when hovering over one div?

You can do it with css like this: box , . Appear{ background: #151515; height: 100px; width: 100px; float:left; } . Appear{ background:red; display:none } .

Box:hover{ background: #e6e6e6; height: 100px; width: 100px; } . Box:hover + . Appear { display:block; } Check this example jsfiddle.net/j4LFD/1.

You can do it with css like this: . Box , . Appear{ background: #151515; height: 100px; width: 100px; float:left; } .

Appear{ background:red; display:none } . Box:hover{ background: #e6e6e6; height: 100px; width: 100px; } . Box:hover + .

Appear { display:block; } Check this example jsfiddle.net/j4LFD/1.

Just what I wanted! Ill put it as top answer when it the time limit ends! – James Nov 15 at 17:30.

To my knowledge it's not possible without Javascript, and I'd recommend using jQuery because it will make your life a lot easier. If you just want to show a div then you can do something similar to First Div Second Div Then in the javascript $('#div1'). Mouseover(function(){ $('#div2').show(); }) $('#div1').

Mouseout(function(){ $('#div2').hide(); }) If you actually want to add it dive on hover then you can use the jquery .append() function (api.jquery.com/append/) Edit: Ok seeing sandeep's answer it clearly is possible in CSS, but still, this is how you'd do it in JS :-).

CSS solution: Use a parent/container div. jsfiddle.net/samliew/j4LFD/4.

You can also do this with vanilla Javascript (no JQuery) and without having your elements be adjacent siblings. Example fiddle: jsfiddle.net/3nxfG/ html/js: css: . Box { background: #151515; height: 100px; width: 100px; float: left; } .

Dden { visibility: hidden; }.

You can fake it, use the box to hide the second box and the border to be the box,jsfiddle.net/j4LFD/3.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions