cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - ActiveLovehtmlicon-new-collectionicon-personicon-teamlog-outoctocatpop-outspinnerstartv

Pen Settings

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. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

Quick-add: + add another resource

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.

Quick-add: + add another resource

Code Indentation


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.

              <div class="navbar navbar-default navbar-static-top">
   <div class="container">
          <div class="navbar-header"> 
              <a class="navbar-brand"><b>FreeCodeCamp</b> Camper's News</a>
 <div class="container stories">
 <div class="story-body"></div>
	font-family: Raleway,'Roboto', sans-serif;
	border-bottom: 5px solid #777;

	width: 100%;
	height: auto;

	display: inline-block;
	transition: all 0.1s ease;
	border-bottom:4px solid #777;
	margin: 5px;
	background-color: #ddd;
	width: 200px;
	position: relative;
	height: auto;

	padding: 15px;
	font-family:'Roboto', sans-serif;

    -moz-column-count: 6;
    -moz-column-gap: 100px;
    -webkit-column-count: 6;
    -webkit-column-gap: 0px;
    column-count: 6;
    column-gap: 0px;
	width: 1152px;
	max-width: 1152px;
	padding: 10px;
	padding-top: 0px; 
.btn{padding: 4px;cursor:text;}
.btn-default{color: #55acee;}
.upval{width: 50px;}
 var api = "https://www.freecodecamp.com/stories/hotStories";

     var headline = val.headline;
     var desc = val.description;
     var image = val.image;
     var link = val.link;
     var upvotes = val.upVotes.length;
     if(val.comments !== undefined) var comments = val.comments.length;
     var posted_by = val.author.username;
   if(image !== ""){
     $('.story-body').append("<div class='each-post'><img src='"+image+"' class='imgr'/><div class='headline'><a href='"+link+"'>"+headline+"</a><br/>- "+posted_by+"</div>" +
        "<div class='vote'><div class='btn-group'><button class='btn btn-primary'>Upvotes</button><button class='btn btn-default upval'>"+upvotes+"</button></div></div></div>");
Loading ..................