.w3-image-sticky{ position: -webkit-sticky; position: sticky; top: 0; padding-top: 0.5em; }