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

+ 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

              
                 <div class="container">

  <div class="top-text">
    <h1><span>bootstrap </span>login & register forms</h1>
    <p>Proin interdum congue ligula laoreet sagittis. Mauris volutpat varius lorem sit amet tincidunt.<br /> Donec tempus eros tellus, at imperdiet erat viverra interdum</p>
  </div>
  <div class="login">
    <div class="without-media">
    <div class="login-text">
      <h3>login to our site</h3>
      <p>enter username and password to log on:</p>
    </div>
    <form>
      <input type="text" name="username" maxlength="12" placeholder="Username" />
      <input type="password" name="password" minlength="8" placeholder="Password" />
      <button>sign in!</button>
    </form>
    </div>
    <h3 class="or-login">...or login with:</h3>
    <div class="login-media">
      <button class="m1">facebook</button>
      <button class="m2">twitter</button>
      <button class="m3">google plus</button>
    </div>
  </div>
  <div class="sign-up">
    <div class="login-text">
      <h3>sign up now</h3>
      <p>fill in the form below to get inistabt access:</p>
    </div>

  <form>
    <input type="text" name="firstname" maxlength="12" placeholder="First name" />
    <input type="text" name="lastname" maxlength="12" placeholder="Last name" />
    <input type="email" name="email" minlength="8" placeholder="Email" />
    <textarea rows="5" cols="40" placeholder="About Your Self..."></textarea>
    <button>sign me up!</button>
  </form>
  </div>
</div>
              
            
!

CSS

              
                *{
 box-sizing: border-box;
 font-family: 'Karla', sans-serif;
}
body{
     margin: 0;
     padding: 0;
     min-height: 923px;
     background-size: cover;
     background: linear-gradient(to bottom, #248ab2 0%, #7877c7 100%);
     text-transform: capitalize;
     color: #fff;
}
.container{
  width: 1300px;
  margin: auto;
}
.top-text{
  text-align: center;
  line-height: 28px;
}
.login{
  float: left;
  width: 45%;
  margin-top: 10%;
}
.without-media, .sign-up{
  padding: 0 85px;
  border-right: 1px solid #98c2cc;
}
.sign-up{
  float: left;
  width: 55%;
  margin-top: 9%;
  border: none;
}
.login-text{
  margin-bottom: 10%;
}
input,button,textarea{
  width: 65%;
  margin-bottom: 15px;
  padding: 10px;
  border: none;
  border-radius: 5px;
}
.login input,button{
  width: 90%;
}
.login button{
  margin-bottom: none;
}
/*form{
  background: #2C5A7B;
  opacity: .8;*/
}
form button{
  background: #46d4ffd9;
  font-weight: bold;
  color: white;
}
form button:hover{
  background: #18B9E7;
}
.sign-up form button{
  width: 66%;
}
.or-login{
  margin-left: 35%;
  margin-top: 7px;
}
.login-media{
  width: 65%;
  margin-left: 50px;
}
.login-media .m1 ,.m2 ,.m3{
  float: left;
  width: 28.3333%;
  margin-right: 7px;
  border: 1px solid #476982;
  background: #336288;
  color: #fff;
}
.login-media .m1{
  margin-left: 35px;
}
.login-media .m1:hover{
  background-color: #4267B2;
  color:#FFF;
  font-weight: bold;
  border:none;
}
.login-media .m2:hover{
  background-color: #1DA1F2;
  color:#FFF;
  font-weight: bold;
  border:none;
}
.login-media .m3:hover{
  background-color: #DE5448;
  color:#FFF;
  font-weight: bold;
  border:none;
}

              
            
!

JS

              
                /*عندي كذا مشكله 
1- responsive background
2- background for form
*/
              
            
!
999px

Console