Home › Forums › CSS › Search Results Alignment › Re: Search Results Alignment
July 1, 2013 at 11:02 am
#141139
Participant
@Waylaid – I had tried that initially but the image that appears is based on the extension of the link:
.searchResults a[href$=’.pdf’] {
padding-left: 25px;
background: transparent url(/resources/images/pdf-search-icon.png) top left no-repeat;
}
.searchResults a[href$=’.fs’] {
padding-left: 25px;
background: transparent url(/resources/images/page-search-icon.png) top left no-repeat;
}
So I can’t span the image, it necessarily needs to be a background image. :(