CSS Relative positioning preventing click on link -


please @ jsfiddle here - http://jsfiddle.net/ftuz5/ . know why links won't work relative positioning have used create link / menu backgrounds want covering element can't work out how resolve issue (having tried relative , z-index on li , elements, plus adding , div span element using create 'button' style background) no avail.

li {     list-style: none; } .side-nav li {   padding-bottom: 3.125em;   width: 100%;   line-height: 1.25em;   text-align: center; } .side-nav {   position: relative;   top: 1.75em;   z-index: -1;   display: block;   color: white;   text-decoration: none;   background: #c7cbaf;   -webkit-border-radius: 48px;   -moz-border-radius: 48px;   -ms-border-radius: 48px;   -o-border-radius: 48px;   border-radius: 48px;   padding-top: 1.375em;   padding-bottom: 0.75em;   text-transform: uppercase; } .responsive-side-nav {   background: transparent url(http://thewebbakery.co.uk/assets/graphics/responsive-icon-sml.png) no-repeat top center; }  .interactive-side-nav {   background: transparent url(http://thewebbakery.co.uk/assets/graphics/interactive-icon-sml.png) no-repeat top center; }  .ux-side-nav {   background: transparent url(http://thewebbakery.co.uk/assets/graphics/ux-icon-sml.png) no-repeat top center; } 

can help?

here's possible solution you:

jsfiddle

<nav class="side-nav" role=navigation> <ul>     <li><a href="#"><div id="responsive-side-nav" class="side-nav-image"></div>responsive web design</a></li>     <li><a href="#"><div id="interactive-side-nav" class="side-nav-image"></div>interactive web design</a></li>     <li><a href="#"><div id="ux-side-nav" class="side-nav-image"></div>user experience</a></li> </ul> 

by wrapping anchor tags around new div images, whole thing becomes clickable.

then can position images wish (i've created common class each image):

.side-nav-image {     width: 100%;     height: 50px;     margin-top: -50px; } 

the downside hit area button increases fit size of image. if want image overlap, while having whole thing clickable, i'm not sure that's possible.


Comments

Popular posts from this blog

PHPMotion implementation - URL based videos (Hosted on separate location) -

javascript - Using Windows Media Player as video fallback for video tag -

c# - Unity IoC Lifetime per HttpRequest for UserStore -