[Javascript] variable DIV

tedd tedd at sperling.com
Thu Feb 12 07:10:45 CST 2009


At 11:01 AM -0500 2/11/09, Rick Pasotto wrote:
>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.

My example is how to use a variable in css AND that does work.

If you don't know how to use the technique, then that's a different 
matter. In short, don't blame the technique because you can't program.

tedd

-- 
-------
http://sperling.com  http://ancientstones.com  http://earthstones.com



More information about the Javascript mailing list