Linethrough/strikethrough a whole HTML table row

Oh yes, yes it is! CSS: table { border-collapse: collapse; } td { position: relative; padding: 5px 10px; } tr.strikeout td:before { content: ” “; position: absolute; top: 50%; left: 0; border-bottom: 1px solid #111; width: 100%; } HTML: <table> <tr> <td>Stuff</td> <td>Stuff</td> <td>Stuff</td> </tr> <tr class=”strikeout”> <td>Stuff</td> <td>Stuff</td> <td>Stuff</td> </tr> <tr> <td>Stuff</td> <td>Stuff</td> <td>Stuff</td> … Read more

How can I create a UILabel with strikethrough text?

SWIFT 5 UPDATE CODE let attributeString: NSMutableAttributedString = NSMutableAttributedString(string: “Your Text”) attributeString.addAttribute(NSAttributedString.Key.strikethroughStyle, value: 2, range: NSRange(location: 0, length: attributeString.length)) then: yourLabel.attributedText = attributeString To make some part of string to strike then provide range let somePartStringRange = (yourStringHere as NSString).range(of: “Text”) attributeString.addAttribute(NSStrikethroughStyleAttributeName, value: 2, range: somePartStringRange) Objective-C In iOS 6.0 > UILabel supports NSAttributedString NSMutableAttributedString … Read more