max-width background-element
-
Hey,
I have a little problem that has been bugging me for days. What I want is a title, with a pattern as a background underneath it. I have a small pattern that can be repeated for this:
.diagonaal{ background: transparent url(https://www.exampleurl.nl/wp-content/uploads/2018/12/diagonal-lines.png) left 70% repeat-x; }
and as html:
<h2 class="diagonaal">Voorbeeld</h2>
The problem is that at this point, the background is displayed as wide as the content area, while I want it to be the width of the H2.
Ideas?
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘max-width background-element’ is closed to new replies.