Created
March 26, 2014 16:30
-
-
Save edgebal/9787401 to your computer and use it in GitHub Desktop.
Unbreakable spans
This file contains 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="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Unbreakable span</title> | |
<style> | |
/* Spans with this class will break | |
to next line as a whole */ | |
span.unbreakable { | |
white-space: nowrap; | |
} | |
</style> | |
</head> | |
<body> | |
<p style="width: 100px;"> | |
... I really like coding using <span class="unbreakable">Facebook API</span> and <span class="unbreakable">Facebook Connect</span> | |
</p> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment