filtering for style

Posting here is no longer possible, please use the forum of a filter list project, such as EasyList
Locked
robome

filtering for style

Post by robome »

Hi,

I'm trying to get rid of a div that looks the following:

Code: Select all

<div align="center" style="width:140px">
Just using #div(align=center) works but isn't good since the site uses that for other things too.
I'd like to additionally address that style but don't get it. I already tried

Code: Select all

  #div(style=width:140px)
as well as
  ##div[style="width:140px"]
Any tips?

Greets,
Rolf
User avatar
Stupid Head
Posts: 214
Joined: Sat Aug 26, 2006 8:11 pm
Location: USA

Post by Stupid Head »

Add a space after the colon.
What, me worry?
Wladimir Palant

Post by Wladimir Palant »

The thing with the style attribute is - once the page is loaded in the browser it usually will be quite different from what you have in the source code. Element Hiding Helper can show you the real (normalized) value of the attribute. I guess it is "width: 140px;" (note the semicolon at the end).
robome

Post by robome »

Wladimir Palant wrote:The thing with the style attribute is - once the page is loaded in the browser it usually will be quite different from what you have in the source code. Element Hiding Helper can show you the real (normalized) value of the attribute. I guess it is "width: 140px;" (note the semicolon at the end).
Hm, somehow this didn't work when I tried adding rules manually. But your great helper tool did it right.
Thank you very much!

Rolf
Locked