Address fixed position bug on Chrome using -webkit-transform

I had a header that I wanted to be fixed to the top of the screen.

.header {
position: fixed;
top: 0;
left: 0;

In Chrome 36 and under the header was behaving strangely. It was disappearing in the middle section of the page and then reappearing when the mouse rolled over the place where it was initially positioned.

I fixed this by adding the below declaration to my css.

-webkit-transform: translateZ(0);

This source for this fix was found here:

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