Review your favorite Linux distribution.
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: 504

Rep: Reputation: 44
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: 840

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
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, mint, suse
Posts: 1,557

Rep: Reputation: 140Reputation: 140
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: 504

Original Poster
Rep: Reputation: 44
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 > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 03:25 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