Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS Is there a better way to make automatic resizable text buttons? Reply To: Is there a better way to make automatic resizable text buttons?

#260785
Atelierbram
Participant

Why not just put the text inside the link, since the image is not used?

<ul class="share-buttons">
  <li><a href="#">Share on Facebook</a></li>

Move the styling for the image over to the link, like:

.share-buttons a {
  display: inline-block;
  margin: 5px 25px 10px 10px;
  padding: .25em .5em;
  border: 3px outset #837a34;
  background-color: rgba(0,0,0,.25);
}