IE6 problem with style.right

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Agamemnus
    New Member
    • Aug 2006
    • 3

    IE6 problem with style.right

    In IE6, style.right seems to set the object's "virtual left" value to the parent's width on even numbers, and the parent's width - 1 on odd numbers, (e.g. this.parentNode .style.width = '367px').

    How can I fix this? (I need to use "style.righ t" instead of "style.left " because the parent element width can change, and I don't want to update all the children object left positions every time this happens, although it looks that I'll have to.)

    Thanks..
  • acoder
    Recognized Expert MVP
    • Nov 2006
    • 16032

    #2
    See How-To Right Justify an Element.

    Comment

    Working...