
Given the above dynamically generated text (meaning that I can’t just use an image), I am trying to recreate the design using just html and css selectors.
I would like to just use a single h4 with the containing text, but am open to other solutions. I would prefer to not use absolute positioning, but again, if that is the only way, then so be it.
I have tried surrounding with span tags, but those are inline elements that don’t have an inherent width.
The h4 will be nested within a div, though not always of the same class or id.
Any ideas or resources to get me started?
Check out how they do the text underneath Contact me on this form. Pretty clean and simple. http://www.onextrapixel.com/examples/html5-css3-contact-form/
Here is the actual CSS that does it:
Sorry for yet another edit, but here is an explanation. h1 { … } styles the actual text, so “Event Schedule” for you, and h1:before { … } does the cool line effect. h1:after { …} does the ampersand, so this is actually where you would put your text i suppose