[Javascript] variable DIV

Rick Pasotto rick at niof.net
Wed Feb 11 10:01:30 CST 2009


On Wed, Feb 11, 2009 at 10:33:44AM -0500, tedd wrote:
> 
> You can have a variable in css IF you encapsulate it in php -- I
> describe it here:
> 
> http://sperling.com/examples/pcss/

Your example doesn't work because '#content h2' has a greater
specificity than 'h2' so even though 'h2' is defined later, '#content h2'
takes precedence.

-- 
"Advice is like snow - the softer it falls, the longer it dwells upon,
 and the deeper it sinks into the mind." -- Samuel Taylor Coleridge
    Rick Pasotto    rick at niof.net    http://www.niof.net



More information about the Javascript mailing list