Skip to content

Instantly share code, notes, and snippets.

@marceloogeda
Created May 28, 2013 13:14
Show Gist options
  • Save marceloogeda/5662662 to your computer and use it in GitHub Desktop.
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.
<!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