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

              
                <!doctype html>
<html lang="en">
  <head>
    <!-- Required meta tags -->
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">

    <!-- Bootstrap CSS -->
    <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">

 

    <!-- Optional JavaScript -->
    <!-- jQuery first, then Popper.js, then Bootstrap JS -->
    <script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo" crossorigin="anonymous"></script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js" integrity="sha384-UO2eT0CpHqdSJQ6hJty5KVphtPhzWj9WO1clHTMGa3JDZwrnQq4sF86dIHNDz0W1" crossorigin="anonymous"></script>
    <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js" integrity="sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM" crossorigin="anonymous"></script>




<header id="header">
  <nav class="Nav-bar" id=nav-bar>
  <img id=header-img src="https://store-images.s-microsoft.com/image/apps.34408.14290170513777332.851d50ac-6195-4729-838d-f7d661e2896a.08c49347-a53c-4d23-8328-30e7a3c428e1?mode=scale&q=90&h=1080&w=1920">
 <ul class="nav-links">
   <li><a href="#features" class="nav-link">FEATURES</a></li>
   <li><a href="#how-to-use-it" class="nav-link">HOW TO USE IT</a></li>
   <li><a href="#pricing" class="nav-link">PRICING</a></li>
    </ul>
    </div>
  </nav>
</header>

<div class="spaceafternav"></div>
<div class="spaceafternav"></div>
<div class="spaceafternav"></div>
<div class="spaceafternav"></div>


 <section id="contact">
    <h3 style="text-align:left">Contact</h3>
    <form id="form" action="https://www.freecodecamp.com/email-submit">
      <input
        name="email"
        id="email"
        type="email"
        placeholder="Enter your email address"
        required
      />
      <input id="submit" type="submit" value="Get Started" class="btn" />
    </form>
  </section>
 
<div class="container">
 <section id="features">
 <div class="grid">
 <div class="col">
    <h3>Auto Beautifying Effects</h3>
        
            Choose from 14 different auto beautifying effects before you take a selfie!
          
 </div>
 </div>
   <p></p>
<div class="spaceafternav"></div>
 <div class="grid">
 <div class="col">
    <h3>Frames, Collages & More</h3>
        
            Make your selfie more interesting with frames, collages, and scene templates. Add text bubble, paint brush, overlays and other effects.
         
 </div>
 </div>
 <div class="spaceafternav"></div>
  <div class="grid">
 <div class="col">
    <h3>Image Cutouts</h3>
         
            Cut out a subject of one photo and add it into another!
        
 </div>
 </div>
 </section>
</div>
  <section id="how-to-use-it">
   <iframe id="video" width="560" height="315" src="https://www.youtube-nocookie.com/embed/6wLv9F3tJB8" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
    </section>
</div>

<section id="pricing">
<div class="flex-grid-thirds">
  <div class="horiz"><h3 style="margin-top:0px">Free</h3><p>Free without extra features.</p></div>
  <div class="horiz"><h3 style="margin-top:0px">In-app products</h3><p>Extra features cost between €0.99 - €114.99 per item.</p></div>
</div>
</section>
  </body>
</html>
         
<style = "text/css">

@import 'https://fonts.googleapis.com/css?family=Montserrat:400,700';

body{
background-image: url("https://cdn.pixabay.com/photo/2017/02/16/19/47/bokeh-2072271_960_720.jpg");
background-repeat: no-repeat;
background-size: cover;
}

#header{
  position:fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  /*background:#3c0020;*/
  background: #d80073;  KAUNIS MAGENTA
  height: 0.3vw;
  display: flex;
  font-color: white;
  font-size:medium;
  opacity:0.8;
}
  
  #nav-bar{
  border: 1px, solid, #c85cff;
  display:flex;
  width: 100%;
  /*background-color: #111;*/
  background-color: #d80073;
  /*height: 10%;*/
  height:4%;
  opacity: 1;
 
  
}

.nav-links{
  display: flex;
  flex-direction: row;
  justify-content: space-evenly;
  flex:1;
  margin: 0;
}



#header-img{
  width: 9%;
  /*height:200%;*/
  height:9%;
  margin: 5px;
  border-radius: 60%;
}

ul{
  list-style-type: none;
    
}

li a {
  display: block;
  color: white;
  text-align: center;
  padding: 14px 16px;
  text-decoration: none;
  font-family: "Palatino Linotype", "Book Antiqua",   Palatino, serif;
}

li a:hover {
  /*color: #a20025 ;*/
  /*color: #d80073;*/
  color:black;
}


.nav-link{
  font-weight: 700;
  /*margin: 10px 10px;*/
  margin: 0; 
  color: white;
  border: 1px hidden #d80073;
 
}

.spaceafternav{
  height:1em;
}

#features {
  margin-top: 20px;
}


#features .col {
display: flex;
flex-direction: column;
justify-content: center;
height: 120px;
width: 80vw;
padding:5px;
font-size:large;

}

 #form {
  width: 100%;
  display: flex;
  justify-content:center;
 
}

.container {
  max-width: 1000px;
  width: 100%;
 
}





#features {
  margin-top: 25px;
}

.grid {
  display: flex;
 
}

#how-to-use-it {
  margin-top: 25px;
  display: flex;
  justify-content: center;
  margin-bottom:23px;
}

#how-to-use-it > iframe {
  max-width: 500px;
  width: 100%;
}

label{
  margin-left: 10px;
  margin-top: 1px;
  margin-bottom: 2px;
  color:black;
  line-height:.7em;
  padding: 15px;
}

input[type=text], input[type=email]{
  width: 80%;
  margin-right:1% 
  padding: 15px;
  outline: none;
  display: inline-block;
  border: none;
  margin-top: 2px;
  /*margin-left: 7px;*/
  color: black;
  /*width:15%*/

  
}

.button{
  //border: 1px solid #8b00d1;
  //border: 3px solid #df2e8c;
  background: #852eff;
  color: white;
  display: inline-block;
  height: 26px;
  text-align: center;
  /*margin-left: 94%;*/
  margin-right:6px;
  margin-top: 5px;
  margin-top: 0%;
  transition: all 0.5s ease;
  
 
}

.button:hover {
  background: #3c0020;
}



.section{
  width:100%;
  display: flex;
  margin-bottom: 1.5em;
  margin-top: 1em;
  flex-direction: row;
  flex-wrap: wrap;
  /*background: #d80073;*/

}

h3{
    /*margin-left: 15%;*/
    color: #240c17;
    margin-top:25px;
    
    
}

p {
  margin: 1em 0;
  padding: 5px;
  /*border: 1px solid #999; */
  border: 1px hidden;
  color: #240c17;
  /*color:#ff288f;*/
  font-size: large;
  /*margin-left: 20px;*/
}


#contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  height: 200px;
  
}

#contact>h3{
/*color:#b43f72;*/
/*color:#FF288F;UPEA PINKKI*/
color:#ff288f;

}

#contact input[type="email"] {
  /*background-image: url("https://cdn.pixabay.com/photo/2016/04/14/12/27/pink-1328819_960_720.jpg");*/
  
  margin-left: 6%;
  color: black;
  font-weight: bold;
  border-style: solid;
  border-width:1px;
  background-color:#ffe9ec;
  /*background-color: #ffe9f3;*/
  opacity:0.5;
}

#contact input[type="submit"] {
background-image: url("https://cdn.pixabay.com/photo/2016/03/17/22/30/texture-1264022_960_720.jpg");
color: black;
font-weight: bold;
border-width:1px;
border-style: solid;

}

#contact input[type="submit"]:hover {
  background-image: url("https://cdn.pixabay.com/photo/2014/09/29/10/18/background-465930_960_720.jpg");
  font-weight: bold;
  color: white;
 
}

#pricing{
 border: 1px, solid, #c85cff;
}


.text{
color: gold;
}

.flex-grid {
  display: flex;
}

.flex-grid-thirds {
  display: flex;
  justify-content: center;
}

.flex-grid-thirds .horiz {
  width: 40%;
  height:40%;
}

/*
.flex-grid-thirds>h3{
margin-top: 2px;
}
*/

.flex-grid-thirds.border{
style:solid;
color:#FF288F;
}

.flex-grid { 
  margin: 5px;
}

.horiz {
  /*background-image: url("https://cdn.pixabay.com/photo/2017/07/08/12/36/background-2484300_960_720.png");*/
  background-image: url("https://cdn.pixabay.com/photo/2017/04/21/17/44/pink-roses-2249403_960_720.jpg");
  padding: 20px;
  margin:5px 5px 5px 5px;
  border-style:solid;
  border-width:2px;
  border-color: #FF288F;
}

.horiz>h3{
color:white;
}

.horiz>p{
color:white;
}

@media only screen and (min-width: 600px) {
.horiz>p{
color:white;
font-size: large;
}
}
@media only screen and (min-width: 768px) {
.horiz>p{
color:white;
font-size: x-large;
} 

} 

/*
http://0xrgb.com/
*/
/*
https://pixabay.com/fi/illustrations/bokeh-tausta-rakenne-pinkki-1123768/
*/

/*Upea violetti kuplakuvio
https://pixabay.com/fi/illustrations/tausta-taustakuvioinnista-1939125/
*/

/*
https://www.color-hex.com/color/ffb6c1
*/

/*
https://www.color-hex.com/color/ff288f  
*/

/*
https://mdbootstrap.com/education/bootstrap/
*/
</style>





  


              
            
!

CSS

              
                





/*
https://stackoverflow.com/questions/53473791/flexbox-center-items-for-1-3-and-2-3-proportion
*/



/*
.bar{
  border: 1px, solid, #c85cff;
  display:flex;
}
*/

/*
.bar > div{
  flex: 1;
  text-align:center;
  font-size: 1.5em;
}

.bar > div:nth-child(1) {
  background-color:#c85cff ;	
}

.bar > div:nth-child(2) {
  background-color:#c85cff;
}

.bar > div:nth-child(3) {
  background-color: #c85cff ;
}

/*
.bar > div:nth-child(4) {
  background-color: #ff6f69;
}
*/

/*
ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
 
}
*/
/*ul > li{
  flex: 1;
}
*/


/*
https://developers.google.com/fonts/docs/getting_started
*/

/*
TÄRKEÄ! Väripaletti!
https://codepen.io/afranceschetti/pen/zNWeVg
https://freefrontend.com/css-color-palettes/
*/

/*
Wrapper is for containing all the elements on a page that aren’t header and footer. Container actually sits inside of elements “containing” them to a max-width.
*/

/*
max-width is the better choice!
*/

/*
In programming languages, the word container is generally used for structures that can contain more than one element. A wrapper, on the other hand, is something that wraps around a single object to provide more functionality and interface to it.
*/

/*
https://css-tricks.com/best-way-implement-wrapper-css/
*/

/*
https://medium.freecodecamp.org/learn-css-flexbox-in-5-minutes-b941f0affc34
*/

/*
https://www.youtube.com/watch?v=FPl-7mTW20U
*/

/*
https://scrimba.com/g/gflexbox
*/

/*
https://scrimba.com/p/pL65cJ/cGNKJTv
https://scrimba.com/p/pL65cJ/cJqymH9

TÄRKEÄ!!!!!!!!!!!!!!!!!!!
*/

/*
https://www.w3schools.com/css/css_navbar.asp
*/

/*
https://www.youtube.com/watch?v=ZeL2IL-dLuM
*/

/*
font-family: Quicksand;
*/

/*
https://www.youtube.com/watch?v=FPl-7mTW20U
*/

/*
https://www.youtube.com/watch?v=FEmysQARWFU
*/

/*
https://www.perfectcorp.com/app/ymk
*/

/*
https://medium.freecodecamp.org/want-amazing-free-coding-tutorials-subscribe-to-these-youtube-channels-b91f154db543
*/

/*
https://www.w3schools.com/css/tryit.asp?filename=trycss_navbar_horizontal_black_right
*/

/*
http://html5doctor.com/the-section-element/
*/

/*
https://css-tricks.com/snippets/css/a-guide-to-flexbox/
*/

/*
https://codepen.io/jdopierala/pen/EWELaG
*/

/*
https://codepen.io/Lucas2308/pen/EOmvEz
*/

/*
https://codepen.io/pholoxo/pen/OwPLqq?editors=1100
*/

/*
https://philipwalton.github.io/solved-by-flexbox/demos/input-add-ons/
*/
              
            
!

JS

              
                


              
            
!
999px

Console