You can target Yahoo! Mail by using the @media yahoo media query and adding your styles.
HTML
<style type="text/css">
@media screen yahoo{
{ /* Place your styles here */ }
}
</style>