On Fri, Jul 5, 2013 at 9:30 PM, Ben Stover <[email protected]> wrote:
> A couple of weeks ago I asked on hoiw to hide a certain
>
> <div class="mydiv">....</div>
>
> pane. I was told to use:
>
>    GM_addStyle("div#mydiv { display: none !important; }");
>
> This works fine. Now I wanted to do something similar with a
>
> <p class="myp"> ... </p>
>
> pane and coded:
>
>    GM_addStyle("p#myp { display: none !important; }");
>
> ...but it doesn't work here.
>
> Whats wrong?
>
>
>

For class attribute, use 'period' notation.

p.myp

See http://www.w3.org/TR/css3-selectors/ for reference.


--
Zulkarnain K.
http://userscripts.org/users/12
http://loucypher.github.com/

-- 
You received this message because you are subscribed to the Google Groups 
"greasemonkey-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/greasemonkey-users.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to