I need something like this:

How can achieve this with css? I know that one way is use background image, but can I achieve this only with css without any image?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
There is a hacky way to do this, using the
:beforepseudo element. You give the:beforea border, then rotate it with a CSS transform. Doing it this way adds no extra elements to the DOM, and adding/removing the strikethrough is a simple as adding/removing the class.Here’s a demo
Caveats
:before, however will degrade gracefully in browsers that do support:beforebut don’t support CSS transforms.CSS
HTML