Pen Settings



CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs 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 its URL and the proper URL extension.

+ add another resource


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


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.


Auto Save

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.


                <nav class="navbar navbar-inverse">
  <div class="container-fluid">
    <ul class="nav navbar-nav">
      <li class="active"><a href="#">Home</a></li>
      <li class="dropdown">
        <a class="dropdown-toggle" data-toggle="dropdown" href="#">Articles
        <span class="caret"></span></a>
        <ul class="dropdown-menu" id="articles-dropdown">
<!--      <li><a href="#">Article 1</a></li> -->
      <li><a href="#">About us</a></li>
      <li><a href="#">Contact</a></li>

<div class="container">
  <h3>Hybrid navigation</h3>
  <p>Most of the naviagation is hardcoded in your app but the links under <i>Articles</i> are dynamically generated based on all published content items of the <i>Article</i> content type in your project.</p>




                // Use jQuery to request the content item using Kentico Cloud Delivery API.
  type: "GET",
  // limit the elements you retrieve in the Article type content items to Title and URL
  url: "",
  dataType: "json",
  success: processData,
  error: function() {

// Process the retrieved data and display it on the page.
function processData(data) {
  for(let item of data.items) {
    let title = item.elements.title.value;
    let url = item.elements.url.value;
    $("#articles-dropdown").append("<li><a href='#articles/"+ url +"' title='articles/"+ url +"'>" + title + "</a></li>")