Dash surrounding text
Posted
by
Brandon Hansen
on Stack Overflow
See other posts from Stack Overflow
or by Brandon Hansen
Published on 2012-06-11T22:14:09Z
Indexed on
2012/06/11
22:40 UTC
Read the original article
Hit count: 223
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?
© Stack Overflow or respective owner