A Pen By Captain Anonymous

Pen Settings

↑ Insert the most common viewport meta tag

CSS Base

Vendor Prefixing

Add External CSS

These stylesheets will be added in this order and before the code you write in the CSS editor. You can also add another Pen here, and it will pull the CSS from it. Try typing "font" or "ribbon" below.

Quick-add: + add another resource
via CSS Lint

Add External JavaScript

These scripts will run in this order and before the code in the JavaScript editor. You can also link to another Pen here, and it will run the JavaScript from it. Also try typing the name of any popular library.

Quick-add: + add another resource
via JS Hint

Code Indentation


Save Automatically?

If active, Pens will autosave every 30 seconds after being saved once.

Want a Run Button?

If active, the preview will update automatically when you change code.


              <div class="services">
			<div class="services_graphic">
					<li id="primary" class="selected toggle-position-one">Primary Services</li> 
					<li class="two toggle-position-two" id="secondary">Extras</li>
			<div class="services_text viewed" id="primary">
				<h2>Brand New Website</h2>
				<p>We work closely with you to develop ...</p>
        <div class="services_text" id="secondary">
				<h2>Hosting and Webmaster Services</h2>
          <p>In addition to design...</p>



              .shift_background {

.services_text {
	position: absolute;

.viewed {

.services_graphic li {




$(".services_graphic li").click(function(){
	var thisID = $(this).attr('id');
	//console.log(thisID);//test code
	//update the selected tab

	//hide the currently displayed about content and replace with the newly selected content using corresponding id

	//switch the tab background image position to reflect the selected content
	var $selected = $('.selected');
	if ($selected.hasClass("two")) {
		//switch tab wording positions if primary was previously selected
		if ($selected.hasClass('toggle-position-two')){

	else {
		//switch tab wording positions if extra was previously selected
		if ($selected.hasClass('toggle-position-one')){}
	//switch the position of the <li>s with tab labels for phone display only


Loading ..................