Skip to content

Instantly share code, notes, and snippets.

@pete-otaqui
Created October 18, 2011 15:05
Show Gist options
  • Save pete-otaqui/1295660 to your computer and use it in GitHub Desktop.
Save pete-otaqui/1295660 to your computer and use it in GitHub Desktop.
Spanning
<!DOCTYPE html>
<html>
<head>
<style>
.richtext {
border:1px solid #000;
margin: 10px;
}
.richtext > span,
.richtext > p > span,
.richtext > strong > span,
.richtext > strong > p > span,
.richtext > p > strong > span
{
font-family: Arial;
font-size:40px;
}
</style>
<title>Go</title>
</head>
<body>
<div class="richtext">
<p><span>I have nothing</span></p>
<p><span>I have <span>two spans</span></span></p>
<p><span style="font-size:22px">I have <span style="font-family:Times New Roman;font-style:italic;">two spans</span></span></p>
</div>
<div class="richtext">
<span>I have nothing</span>
<br/>
<span>I have <span>two spans</span></span>
<br/>
<span style="font-size:22px">I have <span style="font-family:Times New Roman;font-style:italic;">two spans</span></span>
</div>
<div class="richtext">
<strong>
<p><span>I have nothing</span></p>
<p><span>I have <span>two spans</span></span></p>
<p><span style="font-size:22px">I have <span style="font-family:Times New Roman;font-style:italic;">two spans</span></span></p>
</strong>
</div>
<div class="richtext">
<strong>
<span>I have nothing</span>
<br/>
<span>I have <span>two spans</span></span>
<br/>
<span style="font-size:22px">I have <span style="font-family:Times New Roman;font-style:italic;">two spans</span></span>
</strong>
</div>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment