Development

HowToIncludeASpecialStylesheet (diff)

You must first sign up to be able to contribute.

Changes between Version 3 and Version 4 of HowToIncludeASpecialStylesheet

Show
Ignore:
Author:
rehanift (IP: 71.138.7.29)
Timestamp:
12/28/08 03:45:09 (9 years ago)
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • HowToIncludeASpecialStylesheet

    v3 v4  
    4848      } 
    4949}}} 
     50 
     51You can also place your new stylesheet at the beginning or end of the stack. Simply use the 'position' argument of the addStylesheet() method. 
     52{{{ 
     53  // to place your new stylesheet @ the top of the stack ( ie. YUI reset ) 
     54  sfContext::getInstance()->getResponse()->addStylesheet("ie.css","first"); 
     55 
     56  // to place your new stylesheet @ the bottom of the stack 
     57  sfContext::getInstance()->getResponse()->addStylesheet("ie.css","last"); 
     58}}}