css - divs button hover mouse not behaving correctly -


i have 3 main main div in main div , each these 3 div have small button @ bottom, because , feel same have same class "readmore_button" 3 of them styling them in css. button first block behave fines hover rest of 2 not (mouse has @ bottom of div button behave). cant figure out why!!

many in advance.

<div id="highlight_blocks_wrapper">    <div class="highlight_block" id="management_block_01">      <div class="highlight_block_label">management</div>        <div class="readmore_button"><a href="/myurl">read more</a></div>    </div>      <div class="highlight_block" id="valuation_block_01">       <div class="highlight_block_label">valuation</div>                   <div class="readmore_button"><a href="/myurl2">read more</a></div>     </div>      <div class="highlight_block" id="selectgreen_block_01">        <div class="highlight_block_label">select green</div>                  <div class="readmore_button"><a href="/myurl3">read more</a></div>      </div> </div> 

css

 #highlight_blocks_wrapper {     position: relative;     width: 100%;     height: 400px;     margin-top: 10px;   }  .highlight_block {     position: relative;     float: left;     width: 321px;     height: 370px;     margin-left: 15px;     margin-top: 15px;     background-color: #f5f5f5;     border: solid;     border-width: 1px;     border-color: #e8e8e8; } .readmore_button {     width: 75px;     height: 26px;     position: absolute;     right: 10px;         bottom: 10px;     background-color: grey;     background: url("/assets/images/view_more_01.png") no-repeat; } .readmore_button {     font-family: "helveticaneue-light", "helvetica neue light", "helvetica neue", helvetica;      font-size: 13px;     color: #464444;     margin-left: 6px;     line-height: 26px;     text-decoration: none; } .readmore_button:hover {     background: url("/assets/images/view_more_02.png") no-repeat;      } .readmore_button:hover {     color: #fff; } 

i using squarespace cms , using content block in each of them, issue has arises-ed because of that.

<squarespace:block-field id="blockfield_management" class="blockfield_02" columns="10"/> 

this line creates many div blocks , have notice through web inspector in 2nd , 3rd of div over-lapping read more button, why mouse hover not behaving correctly.

solution use z-index .readmore_button class.

.readmore_button { width:75px; height:26px; position:absolute; right:10px;     bottom:10px; background-color:grey; background:url("/assets/images/view_more_01.png") no-repeat;   z-index:100; 

}


Comments

Popular posts from this blog

basic authentication with http post params android -

vb.net - Virtual Keyboard commands -

css - Firefox for ubuntu renders wrong colors -