LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   HTML/CSS or JS: Overprinting characters? (https://www.linuxquestions.org/questions/programming-9/html-css-or-js-overprinting-characters-4175496666/)

Steve W 03-01-2014 01:11 PM

HTML/CSS or JS: Overprinting characters?
 
I want to do "diagonal strikethrough" on some characters on a web page, but since I don't think this is available as a character style, the only way I can think of is to overprint forward slashes across the respective characters. But I cannot find a way to do this, either with direct formatting or with a style. Is it possible using HTML or JS to overprint one character across another, but keep both characters displayed?

millgates 03-02-2014 08:24 AM

Isn't there a unicode for that? Something like ̷ or ̸

j-ray 03-02-2014 11:42 AM

You could give out these characters in a <span class="diagonalStrike">o</span>

Within the css add a background image showing a png with a slash to that class. I think that could do the job.

Steve W 03-03-2014 10:38 AM

Okay, thanks for the info.


All times are GMT -5. The time now is 09:13 AM.