Afficher un message
Vieux 14/06/2008, 19h27   #8
Murray *ACE*
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: CSS left and right aligning

That's exactly javascript, and C#, and C++, I believe.

> It's also weird that the 599 doesn't have a px
> and lacks quotes.


Not really - it's the numeric value that is returned by the
document.body.clientWidth, so I don't think either would make sense.

--
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
==================


"danrodney" <webforumsuser@macromedia.com> wrote in message
news:g30ueo$hoq$1@forums.macromedia.com...
>I wasn't familiar with the ie expressions, so thanks for that tip, as well
>as
> the note about the borders. I don't need a border now, but it's a good
> thing to
> remember.
>
> The syntax of the expression is not much like actual javascript, so I
> assume
> that
> document.body.clientWidth < 599 ? "600px" : "100%"
> would be translated roughly as:
> if the element is less than 599 make it 600px, otherwise make it 100%.
> Weird
> that they choose those characters for separators since they aren't similar
> to
> any javascript I have written. It's also weird that the 599 doesn't have a
> px
> and lacks quotes.
>
> I also put this line of CSS in an IE conditional comment so the code will
> validate.
> Thanks for the !
>


  Réponse avec citation
 
Page generated in 0,17150 seconds with 9 queries