Usamah M. Ali wrote on Thursday, June 25, 2009:
> There is a fundamental limitation of CSS's property > background-position that becomes apparent and annoying when working > with RTL documents. The problem is that when value lengths to > determine the position of an image, the position is by default > calculated from the __top left__ corner of the element. When > working with RTL documents, the desired position is supposed to > work contextually, thus should be calculated from the __top right__ > corner of the element. > > The workaround this is to use only keyword and percentage values. > Negative values of course, do not work out since they serve a > purpose in this regard. > background-position: 4px center; > If we used: > background-position: right center; > > it will work, but we will ose fine-grained styling. Another workaround until CSS has caught up, would be to add the 4px in transparency to the image itself. A hassle if one image needs to be re-used in different situations/spacings, and works only for gifs and pngs of course, but provides pixel precise styling. -- Els ______________________________________________________________________ css-discuss [cs...@lists.css-discuss.org] http://www.css-discuss.org/mailman/listinfo/css-d List wiki/FAQ -- http://css-discuss.incutio.com/ List policies -- http://css-discuss.org/policies.html Supported by evolt.org -- http://www.evolt.org/help_support_evolt/