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

+ 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

              
                <form action="">
  <div class="inp-border a1">
      <input class="input" type="text" name="name1" placeholder="Your Name">
  </div>
  <div class="inp-border a2">
      <input class="input" type="text" name="name1" placeholder="Your Name">
  </div>
  <div class="inp-border a3">
      <input class="input" type="text" name="name1" placeholder="Your Name">
  </div>
  <div class="inp-border a4">
      <input class="input" type="text" name="name1" placeholder="Your Name">
  </div>
</form>

              
            
!

CSS

              
                body{
  margin: 0;
  padding: 0;
  background: #252525;
  position: absolute;
  top: 50%;
  left:50%;
  transform: translate(-50%, -50%);
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}
/* by Ruben Vardanyan */
.inp-border{
	padding: 5px;

	margin: 2vh 1vh;
	border-radius: 67px;
  max-width:200px;
  
}
input{
	font-size: 17px;
}
.input{
  text-align:center;
	padding: 15px;
	outline: none;
	border:double 0;
	background: #252525;
	border-radius: 67px;
	position: relative;
	box-sizing: border-box;
	display: block;
  width: 100%;
}
.a1{
  background: linear-gradient(330.28deg,#FF6E1D  100%,#FF6E1D  100%,#FF6E1D  100%);
  
}
.a1 >input{
  color: #FF6E1D;
}
.a1 >input::placeholder { /* Chrome, Firefox, Opera, Safari 10.1+ */
  color: #FF6E1D;
  opacity: 0.6; /* Firefox */
}
.a2{
   background: linear-gradient(330.28deg,#2CFFF2  100%,#2CFFF2  100%,#2CFFF2  100%);
}
.a2 >input{
  color: #2CFFF2;
}
.a2 >input::placeholder { /* Chrome, Firefox, Opera, Safari 10.1+ */
  color: #2CFFF2;
  opacity: 0.6; /* Firefox */
}
.a3{
  background: linear-gradient(330.28deg,#FF54A6  100%,#FF54A6  100%,#FF54A6  100%);
}
.a3 >input{
  color: #FF54A6;
}
.a3 >input::placeholder { /* Chrome, Firefox, Opera, Safari 10.1+ */
  color: #FF54A6;
  opacity: 0.6; /* Firefox */
}
.a4{
  	background: linear-gradient(330.28deg,#FF3E3E  100%,#FF3E3E  100%,#FF3E3E  100%);
}
.a4 > input{
 color:#FF3E3E;
}
.a4 >input::placeholder { /* Chrome, Firefox, Opera, Safari 10.1+ */
  color: #FF3E3E;
  opacity: 0.6; /* Firefox */
}
.inp-border:focus-within{

		background: linear-gradient(330.28deg,#2CFFF2       0%, #1E78FF  30.73%, #FF54A6  55.73%, #FF6E1D       79.17%, #FF3E3E  100%);
}
.inp-border:hover{
		background: linear-gradient(330.28deg,#2CFFF2       0%, #1E78FF  30.73%, #FF54A6  55.73%, #FF6E1D       79.17%, #FF3E3E  100%);
}
              
            
!

JS

              
                
              
            
!
999px

Console