Afficher un message
Vieux 14/06/2008, 19h45   #9
TC2112
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: CSS left and right aligning

That's right.
If the width is less than 599px, make it 600px. Otherwise, make it 100%.
By the way, the reason why it's not 600 ? "600px" is because expressions
with equal "conditional" and "target"
values may cause IE6 to lock up.

Take care,
Tim

"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,04713 seconds with 9 queries