Kurs i webprogrammering

Kurs i webprogrammering

    body {
        font-family: 'Times New Roman', Times, serif;
    }
    
    h1 {
        background-color: steelblue;
        color: white;
    }
    
    h2 {
        color: olive;
    }
    * {
       margin: 0; 
       padding: 0;
    }
    html, body {
        margin: 0;
        padding: 0;
    }
    
    body {
        padding: 20px;
        font-family: Georgia, 'Times New Roman', Times, serif;
    }
    
    <html>
        <head>
            <link rel="stylesheet" href="index.css">
        </head>
        <body>
            <h1>Metamorphosis</h1>
            <h2>I</h2>
        
            <figure>
                <img src="bilder/bug.jpg">
                <figcaption>En bille som klatrer</figcaption>    
            </figure>
            
            <p>One morning, as Gregor Samsa was waking up from anxious dreams,
    article {
        font-size: 32px;
    }
    
    div {
        border: 2px solid darkorange;
        margin-bottom: 8px;
        margin-right: 8px;
        float: left;
        padding: 30px;
        border-radius: 10px;
    }
    article {
        font-size: 32px;
    }
    
    div {
        border: 2px solid darkorange;
        margin-bottom: 8px;
        margin-right: 8px;
        float: left;
        padding: 15px;
        border-radius: 10px;   
    }
    
    .ikke-metallisk {
    article {
        font-size: 32px;
    }
    
    div {
        border: 2px solid darkorange;
        margin-bottom: 8px;
        margin-right: 8px;
        float: left;
        padding: 15px;
        border-radius: 10px;   
    }
    
    #dagens-grunnstoff {
    h1 {
        text-align: center;
        background-image: linear-gradient(#eee, #999);
        border: 2px solid olive;
        padding: 8px;
        width: 300px;
        margin: 80px auto;
    }
    
    h1:hover {
        color: white;
        background-image: linear-gradient(#999, #eee);
    }
    
    body {
        background-color: darkorange;
    }
    
    section {
        display: grid;
        grid-gap: 4px;
        grid-template-columns: repeat(8, 1fr);
        width
        
    }
    
    div {
        padding: 10px;
    
    section {
        position: relative;
        width: 500px;
        height: 300px;
        margin: auto;
        background-color: cyan;
    }
    
    #abs {
        position: absolute;
        right: 0;
        bottom: 0;
        width: 50%;
    body {
        text-align: center;
        margin-top: 80px;
        background-color: green;
    }
    #kua {
        
        transform: rotate(90deg) translateX(200px);
    }
    body {
        background-color: green;
    }
    
    #kua {
        width: 200px;
        height: 145px;
        position: absolute;
        left: calc(50% - 100px);
        top: calc(50% - 73px);
        transition: 6s;
        transform-origin: 50px top;
    }
    
    @keyframes fallNed {
        from {
            top: 10px;
            background-color: yellow;
        }
        
        to {
            top: 340px;
            background-color: steelblue;
        }
    }
    
    #brett {
        position: relative;
    body {
        margin: 0;
        height: 100vh;
        background-color: darkred;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    section {
        display: grid;
        grid-template-columns: repeat(5, 10px);
        grid-template-rows: repeat(5, 10px);
        grid-gap: 2px;
    * {
        margin: 0;
        padding: 0;
    }
    
    body {
        font-family: Georgia, 'Times New Roman', Times, serif;
        padding: 16px;
    }
    
    h1, h2 {
        text-align: center;
        margin-bottom: 32px;
    }
    * {
        margin: 0;
        padding: 0;
    }
    body {
        font-family: Georgia, 'Times New Roman', Times, serif;
        padding: 16px;
    }
    h1, h2 {
        margin-bottom: 32px;
        text-align: center;
    }
    article {
        column-count: 3;
    html, body {
        margin: 0;
        padding: 0;
        background-color: orange;
    }
    main {
        height: 100vh;    
        display: flex;
        align-items: center;
        justify-content: center;
    }
    img {    
        width: 200px;
        position: absolute;
    html, body {
        margin: 0;
        padding: 0;
        background-color: black;
    }
    h1 {
        font-family: 'Amatic SC', sans-serif;
        font-size: 5rem;
        color: greenyellow;
        margin-top: 90px;
        text-align: center;
    }
    @keyframes sharpenup {
        to {
    <html>
        <head>
            <link rel="stylesheet" href="index.css">
        </head>
        <body>
            <main>
            <div class="ikke-metall">H</div>
            <div id="he" class="edelgass">HE</div>
    
            <div class="alkali-metall">Li</div>
            <div class="jordalkali-metall">Be</div>
            <div id="b" class="halv-metall">B</div>
            <div class="ikke-metall">C</div>
            <div class="ikke-metall">N</div>
    html, body {
        margin: 0;
        padding: 0;
    }
    main {
        border: 2px solid gray;
        border-bottom: none;
        width: 180px;
        height: 400px;
        margin: 10px auto;
        position: relative;
    }
    #boet {
       position: absolute;
Kurs i webprogrammering