Text Boxes

In this example below you will see how to do a Text Boxes with some HTML / CSS and Javascript

Thumbnail
This awesome code was written by alex030293, you can see more from this user in the personal repository.
You can find the original code on Codepen.io
Copyright alex030293 ©
  • HTML
  • CSS
<!DOCTYPE html>
<html lang="en" >

<head>
  <meta charset="UTF-8">
  <title>Text Boxes</title>
  
  
  
      <link rel="stylesheet" href="css/style.css">

  
</head>

<body>

  <!Doctype html>
<head>
</head>

<body>
  <table>
    <tr>
      <td colspan="150">
        <div class="block1">
        <p id="a" align="center">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam accumsan sem dolor, sit amet scelerisque dolor.</p>
      </td>
      <td colspan="150">
        <div class="block2">
        <p id="a" align="center">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam accumsan sem dolor, sit amet scelerisque dolor.</p>
      </td>
      <td colspan="150">
        <div class="block3">
        <p id="a" align="center">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam accumsan sem dolor, sit amet scelerisque dolor.</p>
      </td>
    </tr>
  </table>
</body>
  
  

</body>

</html>

/*Downloaded from https://www.codeseek.co/alex030293/text-boxes-zfAtr */
.block1 {
  /*Dimension*/
  width: 200px;
  height: 200px;
  /*Background*/
  background: #fafafa;
  /*Borderline*/
  border: solid;
  border-width: 4px;
  border-color: #3e3f42; 
  border-bottom-left-radius: 15px;
  border-top-right-radius: 15px;
  /*ShadowEffect*/
  box-shadow: 4px 4px 8px #b8b8b8;
}

.block1:hover {
  background: url(http://img7.imageshack.us/img7/2341/skwf.jpg);
  box-shadow: inset 0px 0px 20px #b8b8b8;
  background-opacity: 0.5;
}

.block2 {
  /*Dimension*/
  width: 200px;
  height: 200px;
  /*Background*/
  background: #fafafa;
  /*Borderline*/
  border: solid;
  border-width: 4px;
  border-color: #3e3f42; 
  border-radius: 15px;
  /*ShadowEffect*/
  box-shadow: 4px 4px 8px #b8b8b8;
}

.block2:hover {
  background: url(http://img7.imageshack.us/img7/2341/skwf.jpg);
  box-shadow: inset 0px 0px 20px #b8b8b8;
  background-opacity: 0.5;
}

.block3 {
  /*Dimension*/
  width: 200px;
  height: 200px;
  box-shadow: 4px 4px 8px #b8b8b8;  
}

.block3:hover {
    background: url(http://img7.imageshack.us/img7/2341/skwf.jpg);
  /*box-shadow: inset 0px 0px 20px #b8b8b8;*/
  background-opacity: 0.5;
}

p#a {
  padding: 1em; 
}

Comments