Pen Settings

HTML

CSS

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

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

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.

HTML

              
                <div class="comic-row">
  <div class="comic-panel">
    <div class="comic-caption-top">Hey Dee, I want your help in creating a handwritten message. Can you please help me? </div>
    <g class="comicgen" name="priya" angle="straight" emotion="smile" pose="shrug" x="-200" y="-60" scale="1.7" width="200" height="300"></g>
  </div>


  <div class="comic-panel">
    <div class="comic-caption-top">I am sort of a technically challenged person. </div>
    <g class="comicgen" name="priya" angle="straight" emotion="rofl" pose="shrug" x="-100" y="-50" scale="1.4" width="200" height="300"></g>
  </div>
  

  <div class="comic-panel">
    <div class="comic-caption-top">Hi Priya! Let me see what I can do! </div>
    <g class="comicgen" name="dee" angle="straight" emotion="hmm" pose="thinkinghmm" x="-100" y="-50" scale="1.4" width="200" height="300"></g>
  </div>
</div>

 <div class="comic-panel">
    <div class="comic-caption-top">Here, you can just write a message using mousepad and take a screenshot.  </div>
    <g class="comicgen" name="dee" angle="straight" emotion="smilehappy" pose="shrug" x="-100" y="-50" scale="1.4" width="150" height="300"></g>
  </div>

  <div class="comic-panel">
    <iframe height=200 width=300 src="https://editor.p5js.org/Ramya_Mylavarapu/embed/Vi_jbLMld"></iframe>
  </div>
</div>

 <div class="comic-panel">
    <div class="comic-caption-top">You are a genius Dee! Thank you!  </div>
    <g class="comicgen" name="priya" angle="straight" emotion="yuhoo" pose="superperfect" x="-100" y="-50" scale="1.4" width="135" height="300"></g>
  </div>
              
            
!

CSS

              
                .comic-panel {
  height: 200px;          /* Each panel has a height of 200 px */
  margin: 10px;           /* ... and a little bit of spacing around it */
  border: 2px solid grey; /* ... with a thick grey border */
  overflow: hidden;       /* Comics should not spill out of the border */
  position: relative;     /* This will be useful when we add captions */
}

.comic-row {
  display: flex;
  flex-direction: row;
}

.comic-caption-top {
  position: absolute;             /* Caption sits on top of the image */
  width: 100%;                    /* It occupies the full width of the panel */
  top: 0;                         /* Position the panel at the top */
  border-bottom: 2px solid grey;  /* ... and top a bottom below. */
  background-color: white;        /* Hide anything behind the caption - for legibility */
  padding: 0.25rem;               /* Give a bit of room for white-space */
  font-family: Neucha, cursive;   /* Pick a handwriting font from Google Fonts */
  font-size: 14px;
  text-transform: uppercase;      /* Comic lettering is usually uppercase */
}

.comic-panel2 {
  height: 200px;          /* Each panel has a height of 200 px */
  margin: 10px;           /* ... and a little bit of spacing around it */
       /* Comics should not spill out of the border */
  position: relative;     /* This will be useful when we add captions */
}

.comic-row {
  display: flex;
  flex-direction: row;
}

.comic-caption-top {
  position: absolute;             /* Caption sits on top of the image */
  width: 100%;                    /* It occupies the full width of the panel */
  top: 0;                         /* Position the panel at the top */
  border-bottom: 2px solid grey;  /* ... and top a bottom below. */
  background-color: white;        /* Hide anything behind the caption - for legibility */
  padding: 0.25rem;               /* Give a bit of room for white-space */
  font-family: Neucha, cursive;   /* Pick a handwriting font from Google Fonts */
  font-size: 16px;
  text-transform: uppercase;      /* Comic lettering is usually uppercase */
}
              
            
!

JS

              
                
              
            
!
999px

Console