LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 06-16-2013, 06:29 AM   #1
fhleung
Member
 
Registered: Aug 2004
Distribution: Lubuntu Live OS
Posts: 432

Rep: Reputation: 30
HTML strikethrough


I would like to do editing on text

As far as I know, latest html5 has Tag <del>
Code:
<del>strikethrough sentence but thickness or style of the line</del>

<style="mso-spacerun: yes">
Is it possible to change thickness the deleted line? Thank you

Last edited by fhleung; 06-16-2013 at 06:44 AM.
 
Old 06-16-2013, 09:53 AM   #2
NevemTeve
Senior Member
 
Registered: Oct 2011
Location: Budapest
Distribution: Debian/GNU/Linux, AIX
Posts: 4,871
Blog Entries: 1

Rep: Reputation: 1871Reputation: 1871Reputation: 1871Reputation: 1871Reputation: 1871Reputation: 1871Reputation: 1871Reputation: 1871Reputation: 1871Reputation: 1871Reputation: 1871
You mean <S>strikethru</S>? CSS is your friend.

Last edited by NevemTeve; 06-16-2013 at 09:58 AM.
 
Old 06-16-2013, 06:50 PM   #3
fhleung
Member
 
Registered: Aug 2004
Distribution: Lubuntu Live OS
Posts: 432

Original Poster
Rep: Reputation: 30
what about thickness the deleted line?
 
Old 06-16-2013, 10:53 PM   #4
glenjohnson44
LQ Newbie
 
Registered: Jun 2013
Posts: 1

Rep: Reputation: Disabled
HTML allows images and objects to be embedded and can be used to create interactive forms.
 
Old 06-16-2013, 11:08 PM   #5
NevemTeve
Senior Member
 
Registered: Oct 2011
Location: Budapest
Distribution: Debian/GNU/Linux, AIX
Posts: 4,871
Blog Entries: 1

Rep: Reputation: 1871Reputation: 1871Reputation: 1871Reputation: 1871Reputation: 1871Reputation: 1871Reputation: 1871Reputation: 1871Reputation: 1871Reputation: 1871Reputation: 1871
CSS is meant to set visual attributes. I don't really know what thickness is, but consult these pages: http://www.w3.org/TR/CSS2/fonts.html
http://www.w3.org/TR/CSS2/text.html
 
Old 06-17-2013, 02:10 AM   #6
AnanthaP
Member
 
Registered: Jul 2004
Location: Chennai, India
Posts: 952

Rep: Reputation: 217Reputation: 217Reputation: 217
Note for the OP.

Style-mso-spacerun is part of MS specific environment like .NET and as such is not available in all development environments. The rendered document should still be visible correctly in IE.

OK

Last edited by AnanthaP; 06-17-2013 at 08:29 PM.
 
Old 06-17-2013, 01:00 PM   #7
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,242

Rep: Reputation: 5322Reputation: 5322Reputation: 5322Reputation: 5322Reputation: 5322Reputation: 5322Reputation: 5322Reputation: 5322Reputation: 5322Reputation: 5322Reputation: 5322
http://stackoverflow.com/questions/2...ickness-in-css

(short answer: you can't).
 
Old 06-18-2013, 02:06 PM   #8
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,671
Blog Entries: 4

Rep: Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945
In any case, the "right" way to specify font-effects such as these are with styles, such as:

<span class="baberuth">Strike out!</span>.

... with an appropriate <style> definition being provided, elsewhere, for the class baberuth.

Last edited by sundialsvcs; 06-18-2013 at 02:07 PM.
 
Old 06-19-2013, 10:08 AM   #9
fhleung
Member
 
Registered: Aug 2004
Distribution: Lubuntu Live OS
Posts: 432

Original Poster
Rep: Reputation: 30
I talking about the line...
It is thin not strong enough.
 
Old 06-19-2013, 10:41 AM   #10
szboardstretcher
Senior Member
 
Registered: Aug 2006
Location: Detroit, MI
Distribution: GNU/Linux systemd
Posts: 4,278

Rep: Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694
Code:
p {
  display: inline-block;
  position: relative;
  font-size: 22px;
  margin-top: 40px;
  margin-left: 40px;
}

p:before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 4px; /* ADJUST HEIGHT TO ADD WEIGHT */
  background: black; /* CHANGE COLOR TO SUIT */
}
Reference: http://codepen.io/andyunleashed/pen/LjCwr

Google: css strikethrough thickness
 
  


Reply



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
Nginx + Apache. Always get /var/www/html/index.html angryrabbit Linux - Server 1 11-27-2011 04:56 PM
adding index.html to /var/www/html not working dannyboy990 Linux - Newbie 1 09-30-2007 08:43 AM
Search & Replace Technique to Fix html HREFs w/o html extension donv2 Linux - Newbie 1 01-30-2007 11:59 PM
index.html is not noticed in /var/www/html xviddivxoggmp3 Red Hat 1 04-23-2006 06:30 PM
Konqueror + file:/usr/share/doc/HTML/index.html jon_k Linux - Software 2 11-25-2003 05:06 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

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

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