P
P
papabig2018-06-04 17:13:36
css
papabig, 2018-06-04 17:13:36

Why does the countdown start from the middle?

https://jsfiddle.net/papabig/zj40dwjg
On hover, the second image is overlaid from the middle. Also, the product labels are placed in the middle, and not at the top of the image, as expected. You can, of course, move the negative top, but I'm rather looking not for solutions, but I want to understand why it is from the middle.
I would like it to be like on this site https://wildwearshop.com/

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
Viktor, 2018-06-04
@papabig

Because the element is positioned from the inline product-link element.

P
profesor08, 2018-06-04
@profesor08

.product-link {
  position: relative;
  display:block;
  height:100%;
  width:100%;
}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question