i'm using absolute element inside of flexbox. My code working on chrome, but firefox not centering my absolute element, and scaling my image.
here is my code
<figure class="banner">
<img src="http://doc.jsfiddle.net/_downloads/jsfiddle-desktop-1440x900-a.png" />
<figcaption>
<p>TEXT</p>
<h3>TİTLE</h3>
<p>TEXT</p>
<a href="#">DETAIL</a>
</figcaption>
</figure>
css:
.banner{display:flex; overflow:hidden; justify-content:center; position:relative; width:350px;}
.banner figcaption{position:absolute; z-index:1; color:@white; text-align:center; width:90%; align-self:center; background:#f00;}