Html css button horizontal alignment - HTML CSS CSS Form

HTML CSS examples for CSS Form:input button layout

Description

Html css button horizontal alignment

Demo Code

ResultView the demo in separate window

<html>
 <head> 
  <meta name="viewport" content="width=device-width, initial-scale=1"> 
  <style id="compiled-css" type="text/css">

#welcome-screen {<!--from w w w  . jav  a  2  s.  c  o  m-->
   width: 320px;
   margin: 0 auto;
   text-align: center;
   display:inline;
}
#welcome-screen button {
   margin-left:200px;
   color: blue;
   background-color: yellow;
   font-weight: bold;
   border-radius: 5px;
   width: 50px;
}


      </style> 
 </head> 
 <body> 
  <div id="welcome-screen"> 
   <h2 id="welcome-title">Click on the flashcards you would like to use:</h2> 
   <br> 
   <br> 
   <button id="CSS-button">CSS</button> 
   <br> 
   <br> 
   <button id="HTML-button">HTML</button> 
  </div>  
 </body>
</html>

Related Tutorials