Skip to content

Instantly share code, notes, and snippets.

@laughinghan
Last active March 22, 2017 02:01
Show Gist options
  • Save laughinghan/ad11384678e59bb790ca1dfee34e557e to your computer and use it in GitHub Desktop.
Save laughinghan/ad11384678e59bb790ca1dfee34e557e to your computer and use it in GitHub Desktop.
<!DOCTYPE html>
<html>
<head>
<style>
span {
background: orange;
}
.line2 {
margin-top: -1.8em;
color: gray;
}
.highlight {
margin: 0 -.1em;
padding: 0 .1em;
}
.with-inline-block .highlight {
display: inline-block;
}
</style>
</head>
<body>
<p>Blah blah <span>span</span> blah blah</p>
<p class="line2">Blah blah <span class="highlight">span</span> blah blah</p>
<div class="with-inline-block">
<p>Blah blah <span>span</span> blah blah</p>
<p class="line2">Blah blah <span class="highlight">span</span> blah blah</p>
</div>
<a href="http://jsbin.com/pomaduqisi/edit?html,css,output">Try out and edit this test case</a>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment