Re: Can't set userContent.css for Firefox

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, 2010-09-22 at 08:34 +0100, Colin Paul Adams wrote:
> I have created a userContent.css in
> ~/.mozilla/firefox/<garbage>.default/chrome/userContent.css
>  
> that looks like this:
>  
> body
> {
>     backgroundColor: yellow;
> }
>  
>  
> and restarted firefox (3.5.12 - FC12) but it does nothing.
>  
> What am i doing wrong?

A syntax error, and (once corrected) would only be applied to pages that
don't have any styling rules, already.  If you want to force an
overriding style, you need to add an "!important" clause, before the
semi-colon.

e.g. body {background-color: yellow !important;}

Don't forget to set the foreground colour, as well.

e.g. body {
             color: black;
             background-color: yellow;
          }

You can, in this case, abbreviate background-color down to just
background.  Which would, also, then override any background image that
the site might have.

To see what CSS is about, start here:  http://www.w3.org/TR/CSS2/
CSS2 (probably) being the version with the most support on most
browsers.  CSS3 is still very new, and isn't going to work (as expected)
when people browse a site with an old browser, as many people still do.

-- 
[tim@localhost ~]$ uname -r
2.6.27.25-78.2.56.fc9.i686

Don't send private replies to my address, the mailbox is ignored.  I
read messages from the public lists.



-- 
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines

[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux