I want a dotted pattern to repeat-x either side of my H1 titles.
Can this be done?
Note: Some of my H1's are placed over background images, not always on a solid colour.
Here's a screenshot of what I'm looking to do
I want a dotted pattern to repeat-x either side of my H1 titles.
Can this be done?
Note: Some of my H1's are placed over background images, not always on a solid colour.
Here's a screenshot of what I'm looking to do
Here's a simple JQuery solution.
<h1 class="dots">Jasper</h1>
<script language="javascript">
var dots = '.................';
$('.dots').prepend(dots);
$('.dots').append(dots);
</script>
You can use the CSS ::before
and ::after
selectors.
jsFiddle: https://jsfiddle.net/4kqxj61e/
tags?
– maxshuty Aug 24 '15 at 14:48