Use top instead of left for screen reader hack

When we want to have information available to screen readers that isn’t applicable to the visual user, we often use the technique of creating a div and positioning it offscreen, like so:


When doing bidi testing for my application at work, this caused a horizontal scrollbar in IE. The fix is to position our hidden div using a negative offset for the top value rather than for the left value, like so:



Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s