Demo entry 3548893

Html basic code

   

Submitted by anonymous on Jan 20, 2016 at 00:14
Language: HTML. Code size: 850 Bytes.

<!DOCTYPE html>
<html>
<head>
  <title>Hola!</title>
  <style>
    #header {
      font-size: 2em;
      margin-bottom: 30px;
      background: yellow;
    }
    #contenedor {
      background: red;
      padding: 10px 5%;
    }
    #contenedor .izquierda {
      float: left;
      color: white;
      background: blue;
      width: 42.5%;
    }
    #contenedor .derecha {
      float: right;
      color: white;
      background: blue;
      width: 42.5%;
    }
    #footer {
      font-size: 0.5em;
      margin-top: 30px;
      background: cyan;
    }
  </style>
</head>
<body>

  <div id="header">
    Arriba!
  </div>

  <div id="contenedor">
    <div class="izquierda">Izquierda!</div>
    <div class="derecha">Derecha!</div>
  </div>

  <div id="footer">
    Abajo!
  </div>
  
</body>
</html>

This snippet took 0.00 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).