Skip to content

Instantly share code, notes, and snippets.

@sthembi
Created February 7, 2013 20:07
Show Gist options
  • Save sthembi/4733730 to your computer and use it in GitHub Desktop.
Save sthembi/4733730 to your computer and use it in GitHub Desktop.
Testing psuedo elements
/**
* Testing psuedo elements
*/
section {
width: 940px;
margin:0px 100px;
position:relative;
}
img {
border: 5px solid red;
}
section.entry-content img:nth-of-type(2n):after {
/* doesn't work check img and after and before pseudo elements*/
content:"this should be blue";
background:yellow;
}
section.entry-content img:nth-of-type(2n) {
border: 10px solid blue;
}
<section class="entry-content clearfix" itemprop="articleBody">
<h3>Founder &amp; Leadership Team</h3>
<h2>Our Mission</h2>
<p>Our mission is to do good</p>
<img class="size-thumbnail wp-image-177 alignright" src="http://placehold.it/350x150&text=1stimage+red+boarder" >
<h2>The Journey:</h2>
<img class="alignleft size-thumbnail wp-image-178" src="http://placehold.it/350x150&text=1stimage+blue+boarder">
<p>list intro</p>
<ul>
<li>Have the opportunity to discover their true gifts and aspirations</li>
<li>Understand the significance of creating vision boards</li>
<li>Come into contact with young female entrepreneurs</li>
<li>Experience weekend adventures to broaden their horizon</li>
<li>Gain the tools that will help them be an inspiration to their peers</li>
</ul>
<p> third image </p>
<img class="alignleft size-thumbnail wp-image-178" alt="IMG_0380" src="http://placehold.it/350x150&text=1stimage+red+boarder">
</section>
// alert('Hello world!');
{"view":"split-vertical","fontsize":"100","seethrough":"","prefixfree":"","page":"all"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment