We're calling on all EU-based Mozillians with iOS or iPadOS devices to help us monitor Apple’s new browser choice screens. Join the effort to hold Big Tech to account!

Trang web này sẽ có chức năng hạn chế trong khi chúng tôi trải qua bảo trì để cải thiện trải nghiệm của bạn. Nếu một bài viết không giải quyết được vấn đề của bạn và bạn muốn đặt câu hỏi, chúng tôi có cộng đồng hỗ trợ của chúng tôi đang chờ để giúp bạn tại @FirefoxSupport trên Twitter và /r/firefox trên Reddit.

Tìm kiếm hỗ trợ

Tránh các lừa đảo về hỗ trợ. Chúng tôi sẽ không bao giờ yêu cầu bạn gọi hoặc nhắn tin đến số điện thoại hoặc chia sẻ thông tin cá nhân. Vui lòng báo cáo hoạt động đáng ngờ bằng cách sử dụng tùy chọn "Báo cáo lạm dụng".

Tìm hiểu thêm

I created a 'userContent.css' file in the appropriate profile directory but I've screwed everything up and now have NO style anywhere!!!

  • 4 trả lời
  • 1 gặp vấn đề này
  • 3 lượt xem
  • Trả lời mới nhất được viết bởi no.cache

more options

I followed every instruction and placed the 'userContent.css' file here C:\Documents and Settings\MyXPUserAccount\Application Data\Mozilla\Firefox\Profiles\kua9g3iu.default\chrome

Having never done this before I assume that by ~~.css you mean nothing but style info, correct? Here is the entire content of my userContent.css file (between the dashed lines):

- - - - - - - - - - - - - - - - - - - -

  • {

background: WHITE!important; color: BLACK!important; font-size: 14px!important; line-height: 16px!important;}

a {text-decoration: UNDERLINE!important;}

a.hover {color: RED;!important;} a.link {color: BLUE;!important;} a.active {color: INDIGO;!important;} a.visited {color: DODGERBLUE;!important;} - - - - - - - - - - - - - - - - - - - -

I wouldn't have had to do this if Firefox's color settings for LINKS worked, but they didn't, they don't, and now I'm looking at the equivalent of black line art on a white background. :(

I've been meaning to attempt this for years but now I need to understand this in earnest. Help!? And thank you!

I followed every instruction and placed the 'userContent.css' file here C:\Documents and Settings\MyXPUserAccount\Application Data\Mozilla\Firefox\Profiles\kua9g3iu.default\chrome Having never done this before I assume that by ~~.css you mean nothing but style info, correct? Here is the entire content of my userContent.css file (between the dashed lines): - - - - - - - - - - - - - - - - - - - - *{ background: WHITE!important; color: BLACK!important; font-size: 14px!important; line-height: 16px!important;} a {text-decoration: UNDERLINE!important;} a.hover {color: RED;!important;} a.link {color: BLUE;!important;} a.active {color: INDIGO;!important;} a.visited {color: DODGERBLUE;!important;} - - - - - - - - - - - - - - - - - - - - I wouldn't have had to do this if Firefox's color settings for LINKS worked, but they didn't, they don't, and now I'm looking at the equivalent of black line art on a white background. :( I've been meaning to attempt this for years but now I need to understand this in earnest. Help!? And thank you!

Tất cả các câu trả lời (4)

more options

Delete that userContent.css file.

more options

the-edmeister said

Delete that userContent.css file.

Ed, the point is I want it to work. Has the syntax/style/structure changed? because when I look at my userContent.css code (above) it looks like css to me (?)

more options

The context of the css that you posted isn't correct. This forum software may have messed it up a bit, but even allowing for that it appears to be in error. At a minimum, you are missing spaces after and between the selectors (punctuation marks). http://kb.mozillazine.org/UserContent-example.css

Why don't you start with an appropriate UserStyle and the Stylish extension, first. Then when you get a feel for how to format css start doing it manually. https://userstyles.org/

Example: https://userstyles.org/styles/54800/visited-color If you would have Stylish installed, a Show CSS link would appear on that page. Toggles between Show CSS and Hide CSS.

more options

the-edmeister said

The context of the css that you posted isn't correct. This forum software may have messed it up a bit, but even allowing for that it appears to be in error. Why don't you start with an appropriate UserStyle and the Stylish extension, first. Then when you get a feel for how to format css start doing it manually. https://userstyles.org/ Example: https://userstyles.org/styles/54800/visited-color If you would have Stylish installed, a Show CSS link would appear on that page. Toggles between Show CSS and Hide CSS.

Won't the Stylish Addon be proprietary to Stylish (with a bunch of stuff created exclusively to use the Stylish Addon)? I'm not trying to be argumentative Ed but after spending over 2 hours trying to find even one complete example of an external userContent.css file has been a nightmare! Everybody has snippets; I need to see examples of the entire content that appears in the userContent.css file — from Line 1 to the last line of text in the file. The Moxillazine link you provided is limited, and half of 'zine's links are dead.

You'd think it was like pulling teeth for someone somewhere to post (even one) complete userContent.css file. And what is with !Important? And Chrome? Why exactly am I saving configuration files in a Chrome folder?

They'll have to place me in a padded cell when this is over! lol