Created
February 7, 2013 20:07
-
-
Save sthembi/4733730 to your computer and use it in GitHub Desktop.
Testing psuedo elements
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* 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; | |
} | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<section class="entry-content clearfix" itemprop="articleBody"> | |
<h3>Founder & 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> | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// alert('Hello world!'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"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