Well you could change the selector to:

*[href $='.pdf']

Though then you'd have to have the href attribute set on your <div>
elements, which doesn't make sense...?

probably best bet is just a class:

.pdf,*[href $='.pdf'] {...}

Kevin


On Mon, Feb 14, 2011 at 11:38 AM, Kunal Bajpai <[email protected]>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]

Reply via email to