html - Div ul list css menu -


how can have child div appear when hover on parent div? please view.fiddle apologies if code incorrect.

thank you

#submenu11 { width:550px; height:400px; float:none; padding-left:1px; padding-top:1px; margin-right; 10px; font:  15px/30px sans-serif; clear: left; margin-left: 181px; border: 1px solid blue; border-bottom: 5px solid blue;     } #left1, #right1 { width: 35%;  float:left; margin-top: -85px; } #left1 { margin-right: 1px; border: 1px solid green; box-sizing: inline-block;    height: 100%; } #right1 { display: inline-block; box-sizing: border-box; width: 60%; height: 100%; border: 1px solid red; } #abc_11 { font:  15px/30px sans-serif; height: 300px; width:170px; display: inline-block; line-height:30px; background-color:white; float:left; padding-right:10px; border-right: 1px solid #0057a4; clear:left; } submenulist ul li { list-style-type: none; clear: left; margin-left: -40px ;     } a.menu1 { font: 15px/30px sans-serif; height: 30px; width: 170px; display: inline-block; line-height: 30px; background-color: white; float: left; padding-left:20px; border-right: 1px solid blue; margin-left: -10px; clear:left; text-decoration: none; color: black; }   a.submenulink1 { border-right: 0px solid #e1e1e1; border-top: 0px solid #444; color: black; display: block; text-align: left; padding-left: 10px; text-decoration: none; width: 100%; font:  15px/30px sans-serif; height: 30px; } a.submenulink1:hover { background: lime; color: white;   } .hide { display:none; } #abc_11:hover#abc_11 + #submenu11{ display:block; }    <div> <div id="abc_11">     <a class="menu1" href="#">galaxy 11</a> </div>     <div id="submenu11" class="hide"> <div id="left1">   <ul class="nav1">       <li class="submenulist"><a class="submenulink1" href="#">galaxy s6 edge</a></li>    <li class="submenulist"><a class="submenulink1" href="#">galaxy s6</a></li>    <li class="submenulist"><a class="submenulink1" href="#">galaxy s5</a></li>    <li class="submenulist"><a class="submenulink1" href="#">galaxy s4 mini</a></li>    <li class="submenulist"><a class="submenulink1" href="#">galaxy s3 mini ve</a></li>   </ul>     </div>   <div id="right1">   <img src="http://www.samsung.com/uk/next/img/estore-recommend-    images/mobiles/s6edgegreen.jpg" alt=""></img>   <a href="#">galaxy s6 edge information</a>  </div>     </div>   </div> 

i guess there issue id being number.


Comments

Popular posts from this blog

javascript - oscilloscope of speaker input stops rendering after a few seconds -

javascript - gulp-nodemon - nodejs restart after file change - Error: listen EADDRINUSE events.js:85 -

Fatal Python error: Py_Initialize: unable to load the file system codec. ImportError: No module named 'encodings' -