Aligning span, paragraph and anchor in the same line - HTML CSS HTML Tag

HTML CSS examples for HTML Tag:a

Description

Aligning span, paragraph and anchor in the same line

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">
.main_box {<!-- w  w w.j  a  va2  s . co m-->
   text-align:center;
}

.title {
   display:inline-block;
}

p {
   display:inline-block;
   width:501px;
}

.button {
   display:inline-block;
}
</style> 
 </head> 
 <body> 
  <div class="main_box"> 
   <span class="title">Title</span> 
   <p>Text goes here</p> 
   <a class="button" href="#">Button</a> 
  </div>  
 </body>
</html>

Related Tutorials