[Javascript] variable DIV
Rick Pasotto
rick at niof.net
Thu Feb 12 16:09:18 CST 2009
On Thu, Feb 12, 2009 at 03:02:36PM -0500, tedd wrote:
> At 7:23 AM -0700 2/12/09, Scott Reynen wrote:
> >On [Feb 12], at [ Feb 12] 6:10 , tedd wrote:
> >
> >> 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.
> >
> >For lack of an active administrator, I'll go ahead and point out that
> >this is inappropriate.
> >
> >The original poster asked for advice on manipulating styles *based on
> >the window size*. Window size only exists client-side, so PHP doesn't
> >help there. And even if it did, this is a *JavaScript-specific* list.
> >If you don't have anything to say about JavaScript, please take it off-
> >list.
> >
> >And even if you do have something to say about JavaScript, if you
> >can't say it without resorting to personal insults, please take that
> >off-list as well.
> >
> >Peace,
> >Scott
>
> Scott:
>
> While I can appreciate your need to comment, there was no insult.
Yes there was.
> What I posted was a way to use variables from within css -- that is a
> fact and it works.
True, but irrelevant. You gave the url of a webpage using your
technique. That webpage did NOT work as you intended. What you intended
to display as green did NOT display as green for the reasons I gave.
> What was posted in return to my post was "It don't work", which was not true.
Your *example* (ie, webpage) doesn't work. You really should learn to
read.
> If the person did not know how to use the technique, that's fine.
I said absolutely nothing about your technique. What I pointed out was
that your resulting css did not do what you wanted it to do.
> But their statement does provide sufficient proof that they did not
> know how to program in that instance. Stating fact, should not be
> construed as an insult.
What you stated was NOT a fact. It was very much in error.
Careful reading would have prevented your error.
--
"Moreover, any man more right than his neighbors constitutes
a majority of one already." -- Henry David Thoreau
Rick Pasotto rick at niof.net http://www.niof.net
More information about the Javascript
mailing list