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:

.hideMe{
position:absolute;
left:-999px;
top:0}

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:

.hideMe{
position:absolute;
top:-999px;
left:0}

Advertisements

Leave a Reply

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

WordPress.com Logo

You are commenting using your WordPress.com 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