I would like to obtain button links with an image over the lines.
I did, actually, using CSS:
section a:link, section a:visited {
width: 150px;
-moz-border-radius: 10px;
-webkit-border-radius: 10px;
border-radius: 10px;
-khtml-border-radius: 10px;
color: white;
background: #03c;
padding: 10px 10px 10px 60px;
display: block;
text-decoration: none;
}
section div {
margin-left: 5px;
margin-top: -9px;
width: 50px;
height: 50px;
float: left;
}
.pdf div {
background: transparent url('pdf.png') no-repeat 0 50%;
}
Then HTML:
<section class="pdf">
<div></div>
<a href="#">Sheet music (PDF)</a>
</section>
But isn't there a better solution than using negative margins that don't work in IE7? I tried to put a certain margin-top
into section a
tags, but due to collapsing margins, it didn't work.
(Wow, my reputation didn't allow me to embed an image nor add more than 2 external links.)