Skip to content

Instantly share code, notes, and snippets.

Created May 20, 2013 13:53
Show Gist options
  • Select an option

  • Save anonymous/5612368 to your computer and use it in GitHub Desktop.

Select an option

Save anonymous/5612368 to your computer and use it in GitHub Desktop.
block
body {font-size: 100%}
/* block */
#q #w {font-size: 2em}
#w {font-size: 2em}
/* 1st pseudo */
#w:before{
display: block;
content: 'Example text. (pseudo)';
font-size: 2em;
}
/* 2nd pseudo */
#w:after {
display: block;
content: 'Example text.';
font-size: 2em;
}
/* more specific the same pseudo */
#q #w:after {font-size: 2em}
<div id='q'>
Example text.(body)
<div id='w'>Example text.(inside)</div>
</div>
// alert('Hello world!');
{"view":"split","fontsize":"100","seethrough":"","prefixfree":"1","page":"all"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment