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. You can use the CSS from another Pen by using it's URL and the proper URL extention.

+ 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.


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 lang="en">
  <title>My portfolio</title>
    <!--This is the top navigation bar-->
    <div class="topnav" id="mytopnav">
      <a href="#About">About</a>
      <a href="#Portfolio">Portfolio</a>
      <a href="#Contact">Contact</a>
    <div class="container-inner">
      <!--This is the about section-->
    <section id="About">
      Hi, I am Indrajit, trying to learn web development.   
      I am learning to create basic html pages.
 <!--This is the portfolio-->
      <section id="Portfolio">
        <h3>My Portfolio</h3>
  <img src=''>
    <img src='' >

<!--This is the contact me section-->
      <section id="Contact">


                /*Adding black color to the top navigation bar*/

.topnav {
  background: black;
  padding: 14px 16px;

/* Change the color of links on hover */
.topnav a:hover {
  background-color: #ddd;
  color: black;

a {
  font-family: "Calibri(body)", Sans-serif;
  font-size: 30px;
  text-decoration: none;
  color: gray;
  padding: 20px 25px 10px 0px;

section {
  color: gray;
  padding: 20px 25px 5px 40px;
  font-family: "Calibri(body)", Sans-serif;

h2 {
  color: black;
  font-size: 40px;

.container-inner {
  margin: auto;
  background: #e1e6ef;
  width: 80%;
  padding: 20px 25px 10px 0px;

..flex-container {
  display: -webkit-flex;
  display: flex;
  width: 400px;
  height: 250px;
  background-color: lightgrey;

.flex-item {
  background-color: cornflowerblue;
  width: 50px;
  height: 100px;
  margin: 10px;
Portfolio ul{
Portfolio img{
padding: 0 3%;