javascript - css show button over image -


i making simple reactjs app need put button on image. html looks like:

<div classname={"panel-body"}>     <img classname={"img-responsive center-block"}          src={album.photos.data[0].source} />     {(this.state.ismouseinsideid === album.id) ? <button>your button</button> : null} </div> 

its fine except button shown below image. want show button on image or in middle of div

how can make work ?

make button position relative , use z-index: maybe helpful you.


Comments

Popular posts from this blog

c# - How Configure Devart dotConnect for SQLite Code First? -

java - Copying object fields -

c++ - Clear the memory after returning a vector in a function -