S
S
stamdyscias2015-11-15 21:46:46
css
stamdyscias, 2015-11-15 21:46:46

I need to make a button on top of the image that will open a specific form, how to organize it?

The image should have a button indents from all edges as a percentage, when you hover over it, the gray lines turn into white, the background is transparent, the text is in the middle8f8ab389b84d40b59498953bc82ea0e4.PNG

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Valeriy Donika, 2015-11-15
@Valonix

Что-то вроде 
<div class="wrap">
       <img src="link">
       <div class="button"><button>Узнать больше</button></div>
</div>

.wrap {position:relative}
.button{position:absolute:top:50%; left:0;rigt:0; margin-top: - (half the height of the button); margin: auto;}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question