Created
May 28, 2013 13:14
-
-
Save marceloogeda/5662662 to your computer and use it in GitHub Desktop.
Exemplo simples para fazer variação de texto no singular/plural com 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
<!DOCTYPE HTML> | |
<html lang="pt-BR"> | |
<head> | |
<meta charset="UTF-8" /> | |
<title>CSS | Variação de texto singular/plural</title> | |
<style type="text/css"> | |
p.plural > span:after { content: "s"; } | |
</style> | |
</head> | |
<body> | |
<!-- singular --> | |
<p>Meu <span>grupo</span>.</p> | |
<!-- plural --> | |
<p class="plural"><span>Meu</span> <span>grupo</span>.</p> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment