×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: CSS
Posted by: Gary Peach
Added: Aug 13, 2017 5:36 PM
Modified: Aug 13, 2017 5:38 PM
Views: 2
css fix to give empty button readable text
  1. <style>
  2. .btn-label {
  3.     font-size: 0;
  4.     height: 1px;
  5.     overflow: hidden;
  6.     display: block;
  7. }
  8. </style>
  9.  
  10. <button>
  11.   <span class="btn-label">508 text</span>
  12. </button>