Just create a no-icon class:
a.no-icon {
padding-right: 0;
background: none;
}
As long as this is declared after your original declaration, it will
override it.
On Mon, Feb 14, 2011 at 1:53 PM, buyz lots <[email protected]> wrote:
> You can use jquery:
>
> $(function(){
> $("a").addClass("your new css class name goes here");
> });
>
> This will add a new class to your <a> element
>
>
>
>
> On Feb 14, 2011, at 2:38 PM, Kunal Bajpai wrote:
>
> Hi All,
>>
>> I used the following style, to place a PDF icon next to all hyperlinks
>> that point to a PDF document.
>>
>> ---------------------------------------------------------------------
>> a[href $='.pdf'] {
>> padding-right: 18px;
>> background: transparent url("../images/pdf_icon.gif") no-repeat
>> center right;
>> }
>> -------------------------------------------------------------------------
>>
>> I want to override this style for a block (<div>), any ideas.
>>
>> TIA
>> KBajpai
>>
>> -- --
>> You received this because you are subscribed to the "Design the Web with
>> CSS" at Google groups.
>> To post: [email protected]
>> To unsubscribe: [email protected]
>>
>
> --
> --
> You received this because you are subscribed to the "Design the Web with
> CSS" at Google groups.
> To post: [email protected]
> To unsubscribe: [email protected]
>
--
--
You received this because you are subscribed to the "Design the Web with CSS"
at Google groups.
To post: [email protected]
To unsubscribe: [email protected]