htmlcssaddthis

Page width bug because of Addthis script


Pages that have the AddThis code are very wide because of the AddThis code. As a result, a horizontal scroll bar appears.

Removing the code, or changing the page direction to LTR fixes everything and the page width is back to normal.

Like mentioned, the problem happens because I'm using RTL direction (html dir="rtl") and when I tried to put the Addthis code into a div which has direction LTR, it didn't help.

How can I get rid of the horizontal scroll bar and yet use a RTL direction?


Solution

  • I had the same problem and i found the fix in your question!!!

    the RTL LTR is the point and what idid was to make CSS style for the inner div insted for the body.

        <body>
            <div class="wrraper">
           -- the cod for the addthis some where in the page... --
            </div>
        </body>
    

    when in the css the .wrraper is position LTR insted of RTL the exem: http://www.visualtext.co.il