Skip to content

Instantly share code, notes, and snippets.

@ncesar
Created January 18, 2019 18:21
Show Gist options
  • Save ncesar/1f402acd9ac124c463832c34908666a2 to your computer and use it in GitHub Desktop.
Save ncesar/1f402acd9ac124c463832c34908666a2 to your computer and use it in GitHub Desktop.
Adicionar um player em uma div
.thumb {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%,-50%);
width: 170px;
height: 170px;
@media(max-width: 768px){
width: 50px;
height: 50px;
}
}
//html
<img src="img-bg" alt="Show">
<a target="_blank" href="#">
<img src="<?=$this->public_url_mobile('img/player.png')?>" class="thumb" alt="Show">
</a>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment