DTP


 
Lively discussions on the graphic arts and publishing — in print or on the web


Go Back   Desktop Publishing Forum > General Discussions > Web Site Building & Maintenance

Reply
 
Thread Tools Display Modes
Old 03-10-2006, 09:12 AM   #1
dthomsen8
Member
 
dthomsen8's Avatar
 
Join Date: Aug 2005
Location: Philadelphia, PA 19130
Posts: 2,158
Default User CSS in Firefox 1.5.0.1

http://www.mozilla.org/support/firefox/edit

tells me how to find the configuration files for Firefox, and what each of the three files does.

What I want to know is about having a user CSS to, for example, make type larger when viewing the web, but on a selective basis. If I am developing a web site, I want Firefox (or Netscape, or another browser) to display the same way as users who know nothing about changing browser configurations, but when surfing for my own information, I might want type to be larger.
dthomsen8 is offline   Reply With Quote
Old 03-10-2006, 10:38 AM   #2
gary
Member
 
Join Date: Dec 2004
Location: In the heart of Lake Minnetonka
Posts: 337
Default

In the 'chrome' directory create a "userContent.css" file.
You can qualify a CSS override with *[src="http://domain.tld/"]

For example,
Code:
h1[src*="pr.atwola.com"] {
	font-color: red;
}
Note that [src*="..."] will match any part of the src string. Likewise [href*=...].
(The * after src or href matches zero or more arbitrary characters up to an equal sign)
gary is offline   Reply With Quote
Old 03-10-2006, 11:52 AM   #3
dthomsen8
Member
 
dthomsen8's Avatar
 
Join Date: Aug 2005
Location: Philadelphia, PA 19130
Posts: 2,158
Default Understanding how this works

Quote:
Originally Posted by gary
In the 'chrome' directory create a "userContent.css" file.
You can qualify a CSS override with *[src="http://domain.tld/"]

For example,
Code:
h1[src*="pr.atwola.com"] {
	font-color: red;
}
Note that [src*="..."] will match any part of the src string. Likewise [href*=...].
(The * after src or href matches zero or more arbitrary characters up to an equal sign)
Let me see if I understand how this works. If I substitute "www.19130.com" for the source parameter, the browser will apply the h1 formatting on that site. Good thought, but obviously if I am developing "www.19130.com", I can control the CSS applied to it.

What I want is the opposite. Just surfing, I would like all sites subject to the user CSS I specify in the chrome folder. When I am working on "www.19130.com" I want the user CSS to be ignored.

Is that possible?
dthomsen8 is offline   Reply With Quote
Old 03-10-2006, 12:19 PM   #4
ktinkel
Founding Sysop
 
ktinkel's Avatar
 
Join Date: Oct 2004
Location: In Connecticut, on the Housatonic River near its mouth at Long Island Sound.
Posts: 11,189
Default

Quote:
Originally Posted by dthomsen8
When I am working on "www.19130.com" I want the user CSS to be ignored.
When I was using my own CSS for browsing, I just had to remember to turn it off when working on a new site.

Not automatic, but not too hard, either.

   
__________________
[SIZE=2][COLOR=LemonChiffon]::[/COLOR][/SIZE]
[SIGPIC][/SIGPIC]
ktinkel is offline   Reply With Quote
Old 03-10-2006, 05:38 PM   #5
gary
Member
 
Join Date: Dec 2004
Location: In the heart of Lake Minnetonka
Posts: 337
Default

Quote:
Originally Posted by dthomsen8
What I want is the opposite. Just surfing, I would like all sites subject to the user CSS I specify in the chrome folder. When I am working on "www.19130.com" I want the user CSS to be ignored.
The solution I use is multiple FF profiles. FF 1.0.7 under Linux let(s) me run several distinct profiles concurrently; I see they have 'fixed' that in FF 1.5.
Under Windows all new invocations of FF use the currently open profile.
Code:
firefox -P profilename
firefox -ProfileManager
gary is offline   Reply With Quote
Old 03-11-2006, 06:22 AM   #6
dthomsen8
Member
 
dthomsen8's Avatar
 
Join Date: Aug 2005
Location: Philadelphia, PA 19130
Posts: 2,158
Default Multiple FF Profiles

Quote:
Originally Posted by gary
The solution I use is multiple FF profiles. FF 1.0.7 under Linux let(s) me run several distinct profiles concurrently; I see they have 'fixed' that in FF 1.5.
Under Windows all new invocations of FF use the currently open profile.
Code:
firefox -P profilename
firefox -ProfileManager
Can I assume the "code" is actually what goes into the Windows shortcut?
dthomsen8 is offline   Reply With Quote
Old 03-11-2006, 04:24 PM   #7
gary
Member
 
Join Date: Dec 2004
Location: In the heart of Lake Minnetonka
Posts: 337
Default

Quote:
Originally Posted by dthomsen8
Can I assume the "code" is actually what goes into the Windows shortcut?
Yes.
gary is offline   Reply With Quote
Old 03-11-2006, 06:09 PM   #8
dthomsen8
Member
 
dthomsen8's Avatar
 
Join Date: Aug 2005
Location: Philadelphia, PA 19130
Posts: 2,158
Default No multiple Firefox profiles in Windows

Quote:
Originally Posted by gary
The solution I use is multiple FF profiles. FF 1.0.7 under Linux let(s) me run several distinct profiles concurrently; I see they have 'fixed' that in FF 1.5.
Under Windows all new invocations of FF use the currently open profile.
Code:
firefox -P profilename
firefox -ProfileManager
I see that I did not read this reply carefully enough. In other words, under Windows, I cannot use multiple Firefox profiles.
dthomsen8 is offline   Reply With Quote
Old 03-12-2006, 12:15 PM   #9
gary
Member
 
Join Date: Dec 2004
Location: In the heart of Lake Minnetonka
Posts: 337
Default

Quote:
Originally Posted by dthomsen8
In other words, under Windows, I cannot use multiple Firefox profiles.
Not quite accurate: you CAN use different profiles; just not at the same time.

You could configure one profile with user CSS and another without. Open the profile with user CSS for normal browsing then close it and open the other profile for development.
gary is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
User Profile dthomsen8 How to Use the Forum 11 09-21-2006 06:16 AM
One billionth Internet user annc Web Design 17 12-29-2005 04:22 AM
Dyslexic user gets redirected Mike Web Site Building & Maintenance 2 11-23-2005 08:27 AM
a.k.a Brian Smithson, Corel User! PeterArnel Print Production & Automation 33 02-20-2005 07:12 PM


All times are GMT -8. The time now is 01:54 AM.


Powered by vBulletin® Version 3.8.9
Copyright ©2000 - 2017, vBulletin Solutions, Inc.
Contents copyright 2004–2014 Desktop Publishing Forum and its members.