make a vertical input field - HTML CSS CSS Form

HTML CSS examples for CSS Form:input

Description

make a vertical input field

Demo Code

ResultView the demo in separate window

<html lang="en">
 <head> 
  <title>Lorem ipsu</title> 
  <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/5.0.0/normalize.min.css"> 
  <style>
.sideway {<!-- w ww.j av  a2  s . c o m-->
   font-size:4em;
   margin:0 2em 0 0;
   white-space:nowrap;
   background:Chartreuse;
   padding:0.26em 0;
   float:left;
   width:3em;
}

.sideway span {
   vertical-align:top;
   display:inline-block;
   -webkit-transform:translatey(100%) rotate(271deg);
   transform:translatey(100%) rotate(271deg);
   -webkit-transform-origin:0 0;
   transform-origin:0 0;
}

.sideway span:before {
   content:'';
   padding-top:100%;
   float:left;
}

input {
   font-family:cursive;
   font-size:2em;
   color:yellow;
   background:none;
   border:none;
   line-height:0.9em;
   vertical-align:middle;
   outline:none;
}

[type="submit"] {
   font-size:3em;
   vertical-align:middle;
   width:0.6em;
   -webkit-transform:scale(2.6) translatey(-6px);
   transform:scale(2.6) translatey(-6px);
}

[type="text"] {
   color:blue;
}

form {
   overflow:hidden;
   border:0.6em solid pink;
}

p {
   overflow:hidden;
   margin:2em;
}
</style> 
 </head> 
 <body translate="no"> 
  <form> 
   <p class="sideway"> <span> <input type="text" placeholder="enter name" size="9"> <input type="submit" id="submit" value="?"> </span> </p> 
   <p>Lorem ipsum dolor sit amet, cons</p> 
  </form>  
 </body>
</html>

Related Tutorials