By all means @Fourize :) That's what it's there for!
Not quite sure what sort of effect @eXo is looking for based on that description. Almost seems like a background image would be the easiest solution here.
@fourize - inline-block doesn't behave right in ie7 and lower; it renders as a block element. i'm 99% sure (can't check, i'm on a mac) your dotted line is getting covered up for geriatric internet users.
if you care about ie7 users, best to use either display:inline for the inner div, or simply use an inline element (such as a span) to get the job done.
Header--------------------------------------------
sometekstwithmoretekst--------------------
Hope he doesn't mind me sharing his stuff.
All you would need to do is set a width to your wrapping div and adjust the border-bottom style on .heading to something like dashed or dotted.
for example...
Not quite sure what sort of effect @eXo is looking for based on that description. Almost seems like a background image would be the easiest solution here.
Simple Strikethrough
do excuse me if I'm wrong : )
...and CSS'ing it similar to how you guys have done.
this way, you don't need to mess around with changing display attributes of elements. plus, i am paranoid of div-itis. but yeah, whatever works.
I'm also paranoid about over-using divs, but is there any real disadvantage other than it containing a few more lines of code?
if you care about ie7 users, best to use either display:inline for the inner div, or simply use an inline element (such as a span) to get the job done.