LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   HTML strikethrough (https://www.linuxquestions.org/questions/programming-9/html-strikethrough-4175466206/)

fhleung 06-16-2013 06:29 AM

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

NevemTeve 06-16-2013 09:53 AM

You mean <S>strikethru</S>? CSS is your friend.

fhleung 06-16-2013 06:50 PM

what about thickness the deleted line?

glenjohnson44 06-16-2013 10:53 PM

HTML allows images and objects to be embedded and can be used to create interactive forms.

NevemTeve 06-16-2013 11:08 PM

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

AnanthaP 06-17-2013 02:10 AM

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

dugan 06-17-2013 01:00 PM

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

(short answer: you can't).

sundialsvcs 06-18-2013 02:06 PM

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.

fhleung 06-19-2013 10:08 AM

I talking about the line...
It is thin not strong enough.

szboardstretcher 06-19-2013 10:41 AM

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


All times are GMT -5. The time now is 11:32 AM.