CSS Code To Add A Ribbon Background to Any Element

This CSS will generate exactly what you see in this screen shot below.

widget title ribbon

The code has been tested on the Genesis Sample child theme and Twenty Twelve.

All you need to do is change the class and values in the code for the width, height and color. Then you can use this CSS on any element including your header.

The CSS code for Media Queries are not included as all themes are coded differently so its impossible to cover all.

Please be advised it could require a fair amount of CSS code if you want to continue displaying these ribbons at different screens sizes. The easy way out is to use display: none.

Related Posts

Was This Tutorial Helpful?

Free

$0

Access only to all free tutorials per month.



Monthly

$75

Access to 10 premium tutorials per month.


Tutorial Request


Includes code guarantee and coding support.

Yearly

$500

Access to 15 premium tutorials per month.


Monthly Tutorial Request


Includes code guarantee and priority coding support.