CSS Positioning login button and heading - HTML CSS CSS Layout

HTML CSS examples for CSS Layout:Position

Description

CSS Positioning login button and heading

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">
body {<!--   w  w w  .ja v a  2 s.c om-->
   font-family:'open sans';
   color:Chartreuse;
}

header {
   padding:21px 21px 21px 51px;
}

h1, h2 {
   font-weight:301;
}

a
 {
   color:yellow;
   text-decoration:none;
   display:block;
   float:right;
}
</style> 
 </head> 
 <body> 
  <header> 
   <a href="/">Lorem ipsum dol</a> 
   <h1>Lorem i</h1> 
   <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi ullam</p> 
  </header>  
 </body>
</html>

Related Tutorials