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

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