Freelancers Network
 
skill list top cap
Homepage
Join the Freelancer's Network
Update your details
Find a freelancer
Post a project
Find a project
Projects Archive
Post a job
Find a job
Jobs Archive
See Dan's Pages
See Andy's Pages
Link to this site
Resources
Join/Leave Forum
Forum Messages
+Additions+ Adverts
Advertising
Contact Us
Subscribe to our newsletter - enter your email address and hit return
Freelancers.net is owned and operated by Andy Stowell and Dan Winchester
skill list end cap
guru web hostcom

Find me again on Freelancers.net

RE: FN-FORUM: Overide property in CSS file

date posted 1st March 2004 14:07

!important can be used in a client side style sheet to over-ride remote
style sheets.

Eg blind people may use a style sheet to set the text to 20px black bold so
they can read it.

They use !important on a style sheet on their system so they can override
your css font sizes wherever you specify them.

If you use an !important rule on the remote stylesheet, you will override
the local stylesheet !important rule, which is guaranteed to alienate your
users.

Regards
Ron

-----Original Message-----
From: [EMAIL REMOVED] [EMAIL REMOVED] Behalf Of Cameron
Leask
Sent: 01 March 2004 14:52
To: FN-FORUM / [EMAIL REMOVED]
Subject: RE: FN-FORUM: Overide property in CSS file




>
>
> But strangely putting this in a stylesheet at the top of the
> page did not work.

You've got to do it in the right order.

If you had a stylesheet that said
...
color: red;
color: blue;
...
You'd have blue text. If the stylesheet said
...
color: blue;
color: red;
...
You'd have red text.

The ordering remains important regardless (IIRC) of how or where you define
the style. (ie you can have multiple stylesheets but the order which the
styles are defined remains important).

Accordingly putting the style in the tag takes precedence over
anything else - it's your last possible chance to style the body tag
(without of course using javascript to change it). Can't remember how using
"!important" changes the precedence, sorry, but a half-decent CSS book
should help you figure it out ;>

Cameron


--
** Get all the Freelance Work you Can Handle *
The Web Design Business Kit will show you proven tactics
and strategies for marketing your business, winning bids,
managing projects and pricing your work. Free Shipping Worldwide.
Read more & get free chapters at: http://www.sitepoint.com/launch/b7c91e/3/4

To advertise here: http://www.freelancers.net/advertising.html



Messages by Day
March 31st 2004
March 30th 2004
March 29th 2004
March 28th 2004
March 27th 2004
March 26th 2004
March 25th 2004
March 24th 2004
March 23rd 2004
March 22nd 2004
March 21st 2004
March 20th 2004
March 19th 2004
March 18th 2004
March 17th 2004
March 16th 2004
March 15th 2004
March 14th 2004
March 13th 2004
March 12th 2004
March 11th 2004
March 10th 2004
March 9th 2004
March 8th 2004
March 7th 2004
March 6th 2004
March 5th 2004
March 4th 2004
March 3rd 2004
March 2nd 2004
March 1st 2004


Messages by Month
December 2004
November 2004
October 2004
September 2004
August 2004
July 2004
June 2004
May 2004
April 2004
March 2004
February 2004
January 2004


Messages by Year
2008
2007
2006
2005
2004
2003
2002
2001
2000