FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Redhat > Fedora User

 
 
LinkBack Thread Tools
 
Old 09-22-2010, 07:34 AM
Colin Paul Adams
 
Default Can't set userContent.css for Firefox

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?
--
Colin Adams
Preston Lancashire
() ascii ribbon campaign - against html e-mail
/ www.asciiribbon.org - against proprietary attachments
--
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
 
Old 09-22-2010, 08:48 AM
Tim
 
Default Can't set userContent.css for Firefox

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@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
 
Old 09-22-2010, 08:58 AM
Colin Paul Adams
 
Default Can't set userContent.css for Firefox

>>>>> "Tim" == Tim <ignored_mailbox@yahoo.com.au> writes:

Tim> 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?

Tim> A syntax error

What's the syntax error?

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

I originally had the ! important, but I removed it from
the example to keep things simple. The example doesn't even work on a
page that has no style rules.
--
Colin Adams
Preston Lancashire
() ascii ribbon campaign - against html e-mail
/ www.asciiribbon.org - against proprietary attachments
--
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
 
Old 09-22-2010, 09:01 AM
Colin Paul Adams
 
Default Can't set userContent.css for Firefox

>>>>> "Colin" == Colin Paul Adams <colin@colina.demon.co.uk> writes:

>>>>> "Tim" == Tim <ignored_mailbox@yahoo.com.au> writes:
Tim> 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?

Tim> A syntax error

Colin> What's the syntax error?

never mind. I found the W3C CSS validator.
--
Colin Adams
Preston Lancashire
() ascii ribbon campaign - against html e-mail
/ www.asciiribbon.org - against proprietary attachments
--
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
 
Old 09-22-2010, 09:17 AM
Tim
 
Default Can't set userContent.css for Firefox

On Wed, 2010-09-22 at 09:58 +0100, Colin Paul Adams wrote:
> What's the syntax error?

Compare your sample "backgroundColor" versus mine "background-color".

--
[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@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
 

Thread Tools




All times are GMT. The time now is 06:29 PM.

VBulletin, Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2007 - 2008, www.linux-archive.org