Forum Moderators: phranque
<big-0 class="foo">bar</big-0> <span data-marker="0" class="foo">bar</span data-marker="0"> <span data-marker="0" class="rel-large"><b><font face="arial"><span data-marker="1" class="rel-medium-default"><u>Yeah, it's <i>me</i>!</u></span data-marker="1"></font></b></span data-marker="0"><br> <b><font face="arial"><span data-marker="1" class="rel-medium-default"><u>Yeah, it's <i>me</i>!</u></span data-marker="1"></font></b><br> .rel-small { font-size: 80% }
.rel-medium-default { font-size: 100% }
.rel-large { font-size: 140% }
.rel-extra-large { font-size: 180% }
.rel-huge { font-size: 220% } <span class="rel-small">Headline</span> <span class="rel-small"><b>Headline</b></span> <span class="rel-small"><b><span class="rel-large">Headline</span></b></span> <span class="rel-small"><b><span class="rel-large"><span class="rel-xl">Headline</span></span></b></span> <span class="rel-small"><b><span class="rel-large"><span class="rel-xl">Headline</span></span></b></span><br><br><span class="rel-small">This is the article</span> <span class="rel-small"><b><span class="rel-large"><span class="rel-xl">Headline<br><br><span class="rel-small">This is the article</span></span></span></b></span> /<span [^>]+>.*?<\/span>/gi <b><span class="rel-large"><span class="rel-xl">Headline</span></b></span><br>This is the article /<span [^>]+>.*<\/span>/gi <b><span class="rel-large"><span class="rel-xl">Headline</span></span></b></span><br><span class="rel-small">This is the article .rel-small { font-size: 80% } can't you use the x-small, small, medium, large, x-large font sizes that are relative to the basic font size of the page? Or because it is in a contenteditable it can't use those? .rel-small { font-size: 80% }
for example, you could use <span class="small"> with .small {font-size: small } so that their next choice would not be relative to their last choice - and hopefully use less nesting. can't you use the x-small, small, medium, large, x-large font sizes that are relative to the basic font size of the page?
# CSS
p { font-size: 12px }
.rel-small { font-size: 80% }
.rel-xl { font-size: 180% }
# HTML
<p>
<b><span class="rel-xl">Headline</span></b><br><br><span class="rel-small">This is the article</span>
</p> Or because it is in a contenteditable it can't use those?