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

              
                
<html>
   <head>
       <title>Why Apples!</title>
       <link rel="stylesheet" type="text/css" href="css/styles.css">
       
   </head>
    
   <body>
     <div id="nav">
         
            <img class="logo" src="http://res.cloudinary.com/mmayat/image/upload/v1506583088/apple_PNG12475_mqgcfj.png" alt="logo" >
            
            <ul>
                <a href="#colOne"><li>Granny Smith</li></a>
                <a href="#colTwo"><li>Red Delicious</li></a>
                <a href="#colThree"><li>Golden Apple</li></a>
             
             
         </ul>
     </div>  
      <div id="containaire">
       <div id="header">
<!--      background image     -->
           <h1 class="hero-title">What Makes Apples Great</h1>
           <a href="#main"><button class="button">Apple</button></a>
           
       </div>
       
    <div id="main">
      <h1>Apples</h1>
          <h2>What Makes Apple Great</h2>
          <p>In 2004, USDA scientists investigated over 100 foods to measure their antioxidant concentration per serving size. Two apples’Red Delicious and Granny Smith’ranked 12th and 13th respectively. Antioxidants are disease-fighting compounds. Scientists believe these compounds help prevent and repair oxidation damage that happens during normal cell activity. Apples are also full of a fibre called pectin – a medium-sized apple contains about 4 grams of fibre. Pectin is classed as a soluble, fermentable and viscous fibre, a combination that gives it a huge list of health benefits.</p>
          
           <h3>Aviod Alzeimers</h3>
          <p>A new study performed on mice shows that drinking apple juice could keep Alzheimer’s away and fight the effects of aging on the brain. Mice in the study that were fed an apple-enhanced diet showed higher levels of the neurotransmitter acetylcholine and did better in maze tests than those on a regular diet.</p>
          
           <h3>Control Your weight</h3>
          <p>Many health problems are associated with being overweight, among them heart disease, stroke, high blood pressure, type 2 diabetes and sleep apnea. To manage your weight and improve your overall health, doctors recommend a diet rich in fibre. Foods high in fibre will fill you up without costing you too many calories.</p>
          
           <h3>Boost your Immune System</h3>
          <p>Red apples contain an antioxidant called quercetin. Recent studies have found that quercetin can help boost and fortify your immune system, especially when you’re stressed out.</p>
          
           <h3>Reduce cholestral</h3>
          <p>The soluble fibre found in apples binds with fats in the intestine, which translates into lower cholesterol levels and a healthier you.</p>
          
           <h3>Curb All sort of cancer</h3>
          <p>Scientists from the American Association for Cancer Research, among others, agree that the consumption of flavonol-rich apples could help reduce your risk of developing pancreatic cancer by up to 23 per cent. Researchers at Cornell University have identified several compounds – triterpenoids – in apple peel that have potent anti-growth activities against cancer cells in the liver, colon and breast. Their earlier research found that extracts from whole apples can reduce the number and size of mammary tumours in rats. Meanwhile, the National Cancer Institute in the U.S. has recommended a high fibre intake to reduce the risk of colorectal cancer.</p>
             <!--      main div  -->
    </div>
       <div class="rowOne">
      
        </div>
<!--        row one end-->
       
        

       
       
<!--    containaire div   -->
       </div>
       <div id="footer">
           Apples 2017 &copy; All Right Reserved
       </div>
   </body> 
</html>
              
            
!

CSS

              
                body {
    margin: 0;
    padding: 0;
    background-color: azure;
}

#nav {
    background-color: #000;
    color: #fff;
    height: 80px;
    margin: 0px;
}

#nav ul li{
    text-align: right;
    display: inline-block;
    color: #fff;
    text-decoration: none;
    list-style-type: none;
    padding: 0 2px;
}

#nav ul {
    float: right;
    display: inline-block;
    font-size: 1.3rem;
    padding: 2px 12px;
}

#nav ul li:hover{
    color: grey;
}



.logo{
    height: 60px;
    width: auto;
    padding: 10px;
    margin: 0px;
}

/*header start*/

#header{
    background-image: url(http://res.cloudinary.com/mmayat/image/upload/v1506583015/apple-banner-2_k6oz9d.png);
    height: 400px;
    max-width: 100%;
    text-align: center;
    background-size: cover;
    background-repeat: no-repeat;
    margin: 0px 0 0 0;
}

.hero-title{
    font-size: 2rem;
    font-family: serif;
    padding: 10rem  0 2rem 0;
    text-align: center;
    color: #fff;
}

.button {
    background-color: transparent;
    color: #fff;
    padding: 15px 32px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    margin: 4px 2px;
    cursor: pointer;
    border: 3px #fff solid;
}

/*header finish*/

#containaire{
    
}

#main{
/*    background-color: yellow;*/
    margin-top: 0px;
    padding: 5% 7%;
    margin-bottom: 0;
}

.rowOne{
    

}

.rowTwo{
    width: 100%;
    background-color: greenyellow;
}

#colOne{
    width: 33.3333%;
    float: right;
    text-align: center;
/*    background-color: aqua;*/
    
}

#colTwo{
     width: 33.3333%;
    float: left;
    text-align: center;
/*    background-color: red;*/
   
}

#colThree{
     width: 33.3333%;
    float: left;
    text-align: center;
/*    background-color: skyblue;*/
    
}

.colApple{
    height: auto;
    width: 200px;
    width: 200px;
}

.apple-text{
    padding: 2px 50px;
}


#footer{
    text-align: center;
    clear: both;
}





              
            
!

JS

              
                
              
            
!
999px

Console