I've created a corner ribbon for a site as per this tutorial
I seem to run into trouble when trying to put it in the top right corner, though, as the ribbon now extends the overall width of the site, and is visible all the way to the right when you scroll the page horizontally.
This is pretty easy to fix by placing the ribbon inside a wrapper with position: absolute
, top:0
, right:0
and overflow: hidden
.
BUT this leads to another problem, namely the wrapper now overlaps my mobile menu (based on the select tag), rendering it unclickable. The ribbon needs to be on the top, well, because it's a ribbon, and it wouldn't do any harm either, if not for the forementioned wrapper.
So, my question is, is there any other way to hide the 'leftover' part of the ribbon on the right? Preferably something that wouldn't mess my navigation...