Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. You can use the CSS from another Pen by using it's URL and the proper URL extention.

+ add another resource

JavaScript

Babel includes JSX processing.

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

+ add another resource

Packages

Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.

Behavior

Save Automatically?

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

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.

HTML

              
                    <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">

<div class="container-fluid">
   
    <img class="center-block" id="logo" src="https://s-media-cache-ak0.pinimg.com/originals/3f/37/95/3f3795403433ae9f48ecfad86ed90a11.png" alt="Cartoon brown hamster in a blue ball holding a red heart">
    
    <h1>Bello the Hamster</h1>
       
        <p>The littlest floof with the biggest heart (and butt)</p>
    
        <img id="main-bello" class="center-block" src="https://s-media-cache-ak0.pinimg.com/originals/81/c4/bd/81c4bd06247f29e475a7eec517fadd50.jpg">
        
        <p class="caption text-info">Bello, otherwise known as baby floof, little acrobat or lil unicorn</p>
        
        <div id="meeting-bello">
        
            <h3>Meeting Baby Floof</h3><br>
        
            <date>16th March 2017</date><br><br>
        
            <p class="center-block">On this particular Thursday, it was a mild
               12 degrees in not so sunny scotland, It was a day like any other. No one could have guessed that this would be the day that the cutest little floof would have stolen
		       our hearts.</p>
       
            <p class="center-block">As with most trips to Pets at Home, there
               was no intention at all of bringing a little fluffy home (said no one ever). So it was impossible to anticipate what would happen next.</p>
           
            <p class="center-block">Upon peering into the wall of temporary
               glass homes, it was almost ineveitable that our eyes would fall upon a little stack of wriggly fluff with tiny pink hands and toes and cute little noses poking out from all directions.</p>
           
            <p class="center-block">When this little stack was disturbed by the
               prospect of food, one by one the little <a href="https://petopedia.petscorner.co.uk/syrian-hamsters/" target="_blank">Syrian hamsters</a> scurried over to the food bowl.</p> 
           
            <p class="center-block">All but one tiny brown bundle of happiness
               who upon being freed from the bottom of the pile, tripped over himself before bounding over and pressing his cute little paws against the glass with his tiny little tongue poking out.</p>

            <img id="bello-home" class="img-rounded" src="https://s-media-cache-ak0.pinimg.com/originals/c0/d6/c3/c0d6c3448285be312e2e30950e772301.png" alt="little brown hamster peeking out of the green Pets at Home box he was brought home in.">
        
            <p class="text-info center-block">Welcome home little Bello.</p><br>
            
            </div>
        
        <h2>Bello's Favourite Things</h2>
        
        <div class="row">
 
            <div class="col-sm-4">
            
        	    <img src="https://s-media-cache-ak0.pinimg.com/originals/04/b5/d9/04b5d9c50bb08437079af5d5addbd47e.png" alt="A small black and red synthetic pocket made just for hamsters.">
        	    
        	    <p>His Pocket</p>
        	
        	</div>
            
            <div class="col-sm-4">
        
        	    <img src="https://s-media-cache-ak0.pinimg.com/originals/56/f6/3c/56f63c38023d17ea774fb0adb8392beb.png" alt="A very photogenic brown hamster looking at the camera.">
        	    
        	    <p>Photoshoots</p>

        	</div>
        
            <div class="col-sm-4">
            
        	    <img src="https://s-media-cache-ak0.pinimg.com/originals/27/ba/d8/27bad875b407ace417ca53e7a1400e74.png" alt="Two popcorn covered treat sticks made especially for hanging up in hamster cages.">
        	    
        	    <p>Popcorn Treat Sticks</p>
        	    
        	</div>
        	
        </div>
        
        <h2>How to Look After a Hamster</h2>
        
        <p>Having a hamster as a pet is a big responsibility.
           They may be little but it is important that they are looked after properly. So if you are
           thinking of getting a Syrian hamster, make sure you know exactly how to care
           for them.</p>
           
         <p>Your challenge is to read <a href="http://dwarfhamsterblog.com/syrian-hamster/" target="_blank">this guide on caring for your Syrian hamster</a>, and then test your 
         knowledge with the quiz below.</p>
         
         <div id="quiz">
         
         	<h2>Quiz</h2>
         	
         	<p>Question 1: How many Syrian hamsters can live in one cage? Choose one answer.</p>
           
               <div class="choices">
                  
                   <label><input type="radio"> 1</label>
                   
                   <label><input type="radio"> 2</label>
                   
                   <label><input type="radio"> 3+</label>
                   
               </div>
               
         	<p>Question 2: What can you use as bedding? Choose all that apply.</p>
         	
         	    <div class="choices">
         	
        	        <label><input type="checkbox"> Paper Tissue</label><br>
        	    
        	        <label><input type="checkbox"> Sawdust</label><br>
        	    
        	        <label><input type="checkbox"> Cotton Wool</label><br>
        	    
        	        <label><input type="checkbox"> Hay</label><br>
        	    
			    </div>

         	<p>Question 3: How often should you play with your Syrian Hamster?</p>
         	
         	<div class="choices">
         		
                   <label><input type="radio"> Never</label>
                   
                   <label><input type="radio"> Sometimes</label>
                   
                   <label><input type="radio"> Frequently</label>         		
         	</div>

         	<p>Question 4: How often should you clean your hamster's cage?</p>
                   
            <div class="choices">

                   <label><input type="radio"> Once a day</label>
                   
                   <label><input type="radio"> Once a week</label>
                   
                   <label><input type="radio"> Once a month</label>   
            
			</div>      	         	

         	<p>Question 5: What type of food can your hamster eat?</p>
         	
         	<div class="choices">
         	
        	        <label><input type="checkbox"> Seeds</label><br>
        	    
        	        <label><input type="checkbox"> Brocoli</label><br>
        	    
        	        <label><input type="checkbox"> Oranges</label><br>
        	    
        	        <label><input type="checkbox"> Cucumber</label><br>    
        	        
			</div>     	
         	
     <details>
       	    
        	    <summary>Reveal Answers</summary>
        	    
         	    
         		<p>Question 1: Only one adult Syrian Hamster can live in a cage at a time, because they end up fighting with each other which can lead to serious harm or even death.</p>
         		    
         		<p>Question 2: You can use all of the bedding mentioned above apart from cotton wool, because it can block their cheek pouches or cause them to choke.</p>
         		    
         		<p>Question 3: You should play with your hamster frequently. They are very sociable creatures (unless you're another Syrian hamster) and love to feel close to you.</p>

         		<p>Question 4: You should clean your hamster's cage once a week to ensure that their body waste doesn't build up and make them ill.</p>
         		    
         		<p>Question 5: Hamsters love nuts, seeds and non acidic fruit and veg. Foods like oranges, lemons and limes etc will make your hamster ill, so avoid them at all costs.</p>
         		           		             		    
         	    
         	</details><br>
         	
	   </div>
         	
         <footer>
			 <p>Created and coded by <a href="https://www.freecodecamp.com/becca941" target="_blank">Becca Williams</a> 2017</p>
         </footer>
        
         </div>  
        
              
            
!

CSS

              
                		/*images*/
		
		#logo {
			width: 15%;
			margin-top: 5%;
			margin-bottom: 5%;
		}
		
		#main-bello {
			width: 50%;
			border-radius: 10%;
			margin-top: 5%;
			margin-bottom: 2%;
		}
		
		#bello-home { 
		    margin-top: 5%;
			margin-bottom: 2%;
		} 
		
		.row img {
			width: 100%;
		}
		
		/*layout*/
		
		.container-fluid {
			width: 70%;
			text-align: center
		}
		
		.choices {
			text-align: left;
		}

    #meeting-bello p {
        max-width: 500px;
    }
		
		/*pretty it up*/
		
		#quiz {
			background-color: lightgray;
			font-weight: bold;
		}
		
	    body {
			font-family: Segoe, Segoe UI, DejaVu Sans, Trebuchet MS, Verdana," sans-serif"
		}
        
		#meeting-bello {
			background-color: lightgoldenrodyellow;
		}
		
		footer {
			background-color: black;
			color: white;
		}
		
		footer a {
			color: palevioletred;
			font: oblique;
		}
              
            
!

JS

              
                
              
            
!
999px

Console