Go Job Hunting at the LQ Job Marketplace
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 03-01-2014, 01:11 PM   #1
Steve W
Registered: Mar 2007
Distribution: Ubuntu 12.04, XUbuntu 12.04
Posts: 483

Rep: Reputation: 37
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?
Old 03-02-2014, 08:24 AM   #2
Registered: Feb 2009
Location: 192.168.x.x
Distribution: Slackware
Posts: 822

Rep: Reputation: 358Reputation: 358Reputation: 358Reputation: 358
Isn't there a unicode for that? Something like ̷ or ̸
1 members found this post helpful.
Old 03-02-2014, 11:42 AM   #3
Senior Member
Registered: Jan 2002
Location: germany
Distribution: ubuntu
Posts: 1,502

Rep: Reputation: 121Reputation: 121
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.
Old 03-03-2014, 10:38 AM   #4
Steve W
Registered: Mar 2007
Distribution: Ubuntu 12.04, XUbuntu 12.04
Posts: 483

Original Poster
Rep: Reputation: 37
Okay, thanks for the info.


characters, css, html, overprinting

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
HTML / CSS Help Konphine General 12 08-22-2011 11:47 PM
CSS - Is there a way to put several lines of HTML into one line using CSS? Chronothread Programming 12 01-05-2011 06:06 AM
HTML/CSS/JS: Problem with <p> not having an absolute position with CSS. RHLinuxGUY Programming 7 03-03-2007 12:21 AM
A little HTML/CSS help? jon_k General 9 07-17-2005 01:49 AM
html/css retrodict Programming 5 11-01-2004 06:56 PM

All times are GMT -5. The time now is 04:20 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration