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="fi">

<head>

    <!-- komentti: koodisto -->
    <meta charset="UTF-8">

    <!-- IE-yhteensopivuus -->
    <meta http-equiv="X-UA-Compatible" content="IE=edge">

    <!-- sivu skaalaantuu oikein erilaisille näytöille -->
    <meta name="viewport" content="width=device-width,initial-scale=1">

    <!-- Global site tag (gtag.js) - Google Analytics -->
    <script async src="https://www.googletagmanager.com/gtag/js?id=UA-148821573-1"></script>
    <script>
        window.dataLayer = window.dataLayer || [];

        function gtag() {
            dataLayer.push(arguments);
        }
        gtag('js', new Date());

        gtag('config', 'UA-148821573-1');

    </script>

    <!-- kuvaus sivun sisällöstä -->
    <meta name="description" content="Täältä löydät minun digitaalisen portfolion...">

    <!-- sivun tekijä -->
    <meta name="author" content="Sami">

    <title>Digitaalinen portfolio</title>

    <!-- linkki googlefonttiin -->
    <link href="https://fonts.googleapis.com/css?family=Baloo+BhaijaanPacifico" rel="stylesheet" />

    <!-- linkki ulkopuoliseen tyylitiedostoon -->
    <link href="css/tyyli.css" rel="stylesheet" />
    <style>
        img[alt="www.000webhost.com"] {
            display: none;
        }

    </style>

</head>

<body>
    <div class="container">
        <header>
            <h1>Digital Portfolio</h1>

            <div class="tabletti">
                <a href="index.html">Front page</a>
                <a href="skills.html">Skills</a>
                <a href="profile.html">Profile</a>
                <a href="contact.html">Contact</a>
            </div>

            <select onChange="window.location.href=this.value" class="mobiili">
                <option value="">Valikko</option>
                <option value="index.html">Front page</option>
                <option value="skills.html">Skills</option>
                <option value="profile.html">Profile</option>
                <option value="contact.html">Contact</option>
            </select>
        </header>

        <article>
            <h2>Find me here</h2>
            <table>
                <tr>
                    <th>Name</th>
                    <th>Title</th>
                    <th>Email</th>
                    <th>Phone</th>
                </tr>
                <tr>
                    <td>Sami </td>
                    <td>Student</td>
                    <td>ghfghfgh@gmail.com</td>
                    <td>+123345657789</td>
                </tr>

            </table>

            <script src='https://maps.googleapis.com/maps/api/js?v=3.exp'></script>
            <div style='overflow:hidden;height:300px;width:550px;'>
                <div id='gmap_canvas' style='height:300px;width:500px;'></div>
                <div><small>
                        <a href="http://www.googlemapsgenerator.com/es/">http://www.googlemapsgenerator.com/es/</a></small></div>

            </div>
            <script type='text/javascript'>
                function init_map() {
                    var myOptions = {
                        zoom: 17,
                        center: new google.maps.LatLng(67.859490, -151.054651),
                        mapTypeId: google.maps.MapTypeId.ROADMAP
                    };
                    map = new google.maps.Map(document.getElementById('gmap_canvas'), myOptions);
                    marker = new google.maps.Marker({
                        map: map,
                        position: new google.maps.LatLng(67.859490, -151.054651)
                    });
                    infowindow = new google.maps.InfoWindow({
                        content: '<strong>Location</strong><br>Alaska<br>'
                    });
                    google.maps.event.addListener(marker, 'click', function() {
                        infowindow.open(map, marker);
                    });
                    infowindow.open(map, marker);
                }
                google.maps.event.addDomListener(window, 'load', init_map);

            </script>

        </article>
        <br>
        <footer>
            <pre>
   Tekijä: Sami
</pre>
        </footer>
    </div>
</body>

</html>

              
            
!

CSS

              
                /* mobile first ensin */

h1 {
    font-size: 24px;
    /* fontin koko */
    font-family: 'Arial';
    color: #00FF7F;
    /* väri heksadesimaalina */
    text-align: center;
    /*tekstin keskitys */
    text-shadow: 5px 5px 5px white, -5px -5px 5px white;
}

p {
    font-size: 21px;
    font-family: 'Arial';
    color: rgb(0, 0, 0);
    /* väri rgb-arvona*/
}

.col-sm-4 {
    color: white;
}

pre {
    font-size: 15px;
    font-family: 'Arial';
    color: rgb(0, 0, 0);
    /* väri rgb-arvona*/
}

body {
    font-family: verdana, arial, sans-serif;
    /* fonttiperhe */
    background-color: #87CEFA;
    /* väri sanana */
    color: gray;
    /*väri sanana */
    background-image: url(../images/tausta.jpg);
    /* taustakuva sivulle */
    background-repeat: no-repeat;
    /* taustakuva yhteen kertaan */
    background-size: cover;
    /* taustakuvan koko */
    background-attachment: fixed;
    /* kiinnittää taustakuvan vierityksen ajaksi */
  height:100%
}

.container {
    background-color: rgba(255, 255, 255, 0.8);
    padding: 5px;
    /* tyhjä tila sisällön ja reunan väliin*/
    width: 95%;
    /*leveys*/
    max-width: 1232px;
    /*maksimileveys*/
    margin: auto;
    /* keskitys */
    border: 6px white solid;
    /* reunus */
    border-radius: 20px;
    /* kulman pyöristys */
    box-shadow: 8px 8px 10px teal;
    /*heittovarjo */
}

.boxed {
    border: 1px solid black;
    width: 100%;
    max-width: 300px;
    float: left;
    padding: 10px;

}

.boxed2 {
    border: 1px solid black;
    width: 100%;
    max-width: 370px;
    height: 190px;
    float: left;
    padding: 10px;
    margin-left: 55px;
}


.boxed3 {
    border: 1px solid black;
    width: 100%;
    max-width: 370px;
    height: 140px;
    float: left;
    padding: 10px;
    margin-left: 55px;
}

.Laatikko {
    width: 100%;
    max-width: 680px;
    margin: auto;

}

.sami {
    width: 100%;
    height: auto;

}

img.sami {
    margin: -205px 40px;
    width: 250px;
    height: 200px;
}

.kartta {
    margin: -80px 600px;
}

.tabletti {
    text-align: center;
    /* linkkien keskitys */
}

.tabletti a {
    display: inline-block;
    color: #00FF7F;
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
    font-size: 17px;
    background-color: #00FF7F;
    color: black;
}

.tabletti {
    background-color: #00FF7F;
    color: black;
}

.tabletti a:hover {
    background-color: #3CB371;
    color: black;
}

.tabletti {
    display: none;
    /* piilotetaan tabletti */
}

select,
option {
    color: #5AD45A;
    font-size: 20px;
}


.keskitys {
    text-align: center;
}

#banneri {
    width: 100%;
    max-width: 1232px;
}

li {
    list-style-image: url(../images/merkki.png);
}

ul {
    float: left;
    margin-right: 5%;
}

/* tabletti & pienet läppärit */

@media (min-width:400px) {
    .tabletti {
        display: block;
    }

    /* tablettinäkymä näkyviin */
    .mobiili {
        display: none;
    }

    /* piilotetaan alasvetovalikko */
    h1 {
        font-size: 36px;
        /* fontin koko */
    }

    h2 {
        font-size: 26px;
    }

    .container {
        padding: 10px;
        width: 90%;
    }
}

tr:nth-child(even) {
    background-color: white;
}

tr:nth-child(odd) {
    background-color: #ddd;
}

td {
    padding: 4px;
}

table {
    margin-bottom: 20px;
}

@media (max-width:710px) {

    table,
    td {
        width: 90px;
        display: block;
    }

    th {
        display: none;
    }
}

/* iso näyttö */

@media (min-width:900px) {
    h1 {
        font-size: 56px;
        /* fontin koko */
    }

    h2 {
        font-size: 42px;
    }
}

              
            
!

JS

              
                
              
            
!
999px

Console