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
Post a Comment