I've literally spent hours on this problem. I took over this site, and the CSS was already set up, with the exception of some layout issues. The only sprites used on this site are for homepage and email links. The phone number is supposed to display above the homepage and email icons, not IN an icon. Here is the HTML:
<div class="box agencies">
{{ for letter,list in agencies }}
<div class="item">
<h2><a href="#" class="btn">{$letter}</a></h2>
</div>
<div class="index">
{{for agency in list }}
<div class="innerbox">
<div class="info">
{{if agency.phone }}
<strong>{$agency.phone}</strong>
{{ endif }}
<ul>
{{if agency.website }}
<li class="item2"><a href="{$agency.website}" target="_blank"></a></li>
{{ endif }}
{{if agency.email }}
<li class="item1"><a href="mailto:{$agency.email}"></a></li>
{{ endif }}
</ul>
</div><!-- INFO -->
<h3>{$agency.name}</h3>
<p>{$agency.tagline}</p>
<a href="#" class="view" data-collapse="{$agency.id}" data-state="0">
VIEW GIRLS ↓
</a>
<div class="gallery" data-collapsible="{$agency.id}">
<ul>
{{ for girl in agency.girls }}
<li>
<a href="girls/profile?id={$girl.id}">
<img src="{$girl.thumb}" style="width:74px;" alt="" /></a>
</li>
{{ endfor }}
</ul>
</div><!-- GALLERY -->
</div><!-- INNERBOX -->
{{ endfor }}
<div class="clear"></div><!-- CLEAR -->
</div><!-- INDEX -->
{{ endfor }}
</div><!-- BOX -->
And here is the CSS:
div#content div.innerbox h3 {
margin-bottom:0;
color:#1d1c1c;
font-size:14px;
font-weight:normal;
}
div#content div.innerbox div.info {
width:120px;
float:right;
}
div#content div.innerbox div.info strong {
margin-bottom:5px;
text-align:right;
display:block;
color:#373737;
font-size:12px;
}
div#content div.innerbox div.info ul {
overflow:hidden;
zoom:1;
}
div#content div.innerbox div.info li {
margin-left:5px;
float:right;
}
div#content div.innerbox div.info a {
width:31px;
height:32px;
display:block;
overflow:hidden;
background:url(../images/sprites-contact.gif) no-repeat left top;
}
div#content div.innerbox div.info li.item1 a {
background-position:-37px 0;
}
div#content div.innerbox div.info li.item1 a:hover {
background-position:-37px -34px;
}
div#content div.innerbox div.info li.item2 a:hover {
background-position:0 -34px;
}
I haven't worked a lot with CSS, and this one has me stumped. Any help would be greatly appreciated!