I'm working on styling a section of a website with a pattern running alongside certain pieces of text. I've included a screenshot taken from the PSD file to illustrate the issue I'm facing, with red arrows indicating the areas that are posing a challenge for me - .
Any suggestions on how to tackle this?
This is my starting point:
<div class="box">
<h2>Some text here</h2>
</div>
And here's the corresponding CSS:
.box {
width:400px;
height:200px;
text-align:center;
background:yellow;
}
h2:after,h2:before{
content:"";
border:5px double purple;
}
You can view the fiddle here: http://jsfiddle.net/HerrLoop/g63LB/1/
Currently, you'll notice that the stripes are vertical instead of horizontal as shown in my initial screenshot.