Created
April 21, 2025 19:17
-
-
Save alelazcano/97f574de484bbcc6af8cad14aa165bbf to your computer and use it in GitHub Desktop.
Frases con tachado de palabra y reemplazo por otra (full html/css)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- Ver en funcionamiento: https://playcode.io/2350477 --> | |
<!DOCTYPE html> | |
<html lang="es"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Efecto palabra tachada con reemplazo</title> | |
<style> | |
body { | |
font-family: sans-serif; | |
background: #f7f7f7; | |
padding: 2rem; | |
} | |
.item { | |
font-size: 1.5rem; | |
margin: 1rem 0; | |
} | |
.strike-replace { | |
position: relative; | |
display: inline-block; | |
color: #999; | |
text-decoration: line-through; | |
} | |
.strike-replace::after { | |
content: attr(data-new); | |
position: absolute; | |
top: -1.5rem; | |
left: 0; | |
color: blue; | |
font-style: italic; | |
text-decoration: none; | |
text-shadow: 1px 1px #fff; | |
} | |
.block { | |
margin: 3rem 0; | |
} | |
.resalta { | |
background-color: yellow; | |
} | |
</style> | |
</head> | |
<body> | |
<div class="block"> | |
<p>Analice su catálogo VTEX y conozca los productos que tiene verdaderamente publicados, visibles. <span class="resalta">Productos en condición de poder ser comprados</span> por sus usuarios en el sitio web.</p> | |
</div> | |
<div class="item"> | |
Muestra <span class="strike-replace" data-new="eficiente">limitada</span> | |
</div> | |
<div class="item"> | |
Tiempo <span class="strike-replace" data-new="minutos">horas</span> | |
</div> | |
<div class="item"> | |
Datos <span class="strike-replace" data-new="diarios">semanales</span> | |
</div> | |
<div class="block"> | |
<p><a href="https://www.linkedin.com/in/alejandrolazcano/">Solicite una demo</a></p> | |
</div> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment