Check to see where your print.css sheet is linked in your head area  
flow.
It should come last like this for example.
<link type="text/css" rel="stylesheet" href="main.css">
<link type="text/css" rel="stylesheet" href="print.css" media="print">

Barrett


On Dec 31, 2008, at 1:07 PM, Angela French wrote:

> Yikes!  Just tried your suggestion, but then I would have to style  
> every element in my print.css file.
> I think I'll just stick with the !important where I need it.
>
> Angela French
>
>
> On 31/12/08 17:50, Angela French wrote:
>> I am creating a print style sheet (media="print").  Most of the  
>> declarations in the style sheet are requiring !important in order  
>> to take effect.
>> My print.css style sheet is the last to be loaded by the browser  
>> (last in the list of linked style sheets).  Can anyone tell me why  
>> it is necessary for me to add the !important declaration in order  
>> for the style to take effect?
>
> It sounds like you have targeted the earlier stylesheets at all media
> types. Try setting them to media="screen".
>
> --
> Benjamin Hawkes-Lewis
>
______________________________________________________________________
css-discuss [cs...@lists.css-discuss.org]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to