I’m trying to achieve the following effect for my headings:
https://i.stack.imgur.com/mIx7q.jpg
So that the background is red, then the right hand side image is attached with rounded edges and a transparent background.
Currently, the red background is filling the whole area, so that the rounded image on the right doesn’t have a transparent background, the corners are red.
This is the CSS that I currently have:
.tabbed-heading{
background-color: #ef4857;
padding: 8px 0px 8px 10px;
background-image: url('images/headertabright.png');
background-position: right;
background-repeat: no-repeat;
color: #fff;
max-width: 60%;
}
–
<h4 class="tabbed-heading">Lineup</h4>
Any help would be greatly appreciated, thanks.
Not sure if this will work for you as your heading looks to be centered but this is a workaround to use the transparent png
HTML
CSS
If you want to hide you text and just use the image as the title add text-indent:-9999px
Working example:
http://jsfiddle.net/YKrf4/1/