Button beside paragraph for responsive layout - HTML CSS CSS Form

HTML CSS examples for CSS Form:input button layout

Description

Button beside paragraph for responsive layout

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">

a {<!--from w w w. j  ava 2  s.  c o  m-->
   width:10%;
   display:inline-block;
   vertical-align:top;
}
p{
   width:70%;
   display:inline-block;
   margin-top:0 !important;
}
@media screen and (max-width:500px){
   a {
      margin-right:20px;
   }
}
}


      </style> 
 </head> 
 <body> 
  <div class="myclass"> 
   <a href="#" class="btn btn-primary btn-sm">Button</a> 
   <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. In vitae turpis porta, lobortis turpis in, pretium erat. Lorem ipsum dolor sit amet, consectetur adipiscing elit.</p> 
  </div>  
 </body>
</html>

Related Tutorials