<? if(!empty($print->file)){ ?> <td><a class="btnx" href="<? echo $print->file ; ?>" download rel="noopener noreferrer" target="_blank"> Fichier </a></td> <!-- END div-header --> <? } ?> CSS .btnx { border: none; background-color: inherit; padding: 14px 28px; border-radius: 8px; font-size: 16px; cursor: pointer; display: inline-block; font-weight: bold; } .btnx { background-color: DodgerBlue; border: none; color: white; padding: 12px 30px; cursor: pointer; font-size: 20px; } /* Darker background on mouse-over */ .btnx:hover { background-color: RoyalBlue; } button a, button a:hover{ text-decoration: none; color: white; }
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter