CSS Header style applied to children - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Header

Description

CSS Header style applied to children

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

.page_header_style {
   border: 1px solid blue;
   padding: 20px 0;
   position: relative;
}
.title_style {
   text-align:center;
}
.user_style {<!--from w ww.j a va  2 s.c  om-->
   position: absolute;
   top: 10px;
   right: 10px;
   list-style: none;
   padding: 0;
   margin: 0;
}


      </style> 
 </head> 
 <body> 
  <header class="page_header_style"> 
   <div> 
    <div class="title_style">
      Main Title 
    </div> 
    <div> 
     <ul class="user_style"> 
      <li>Welcome Srk</li> 
      <li> <a href="">Logout</a> </li> 
     </ul> 
    </div> 
   </div> 
  </header>  
 </body>
</html>

Related Tutorials