Strike through Element - HTML CSS CSS Layout

HTML CSS examples for CSS Layout:Text

Description

Strike through Element

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 {<!--from   w w w  . j  a va2 s .com-->
   background:grey;
}

.introPage {
   position:relative;
   width:100%;
   max-width:100vw;
   padding-top:4em;
   height:100%;
   background:gray;
   display:table-row;
}

.test {
   position:relative;
   text-align:center;
   width:21%;
   min-width:2.6em;
   display:table-cell;
   font-variant:small-caps;
   font-weight:701;
   font-size:3em;
   display:table-cell;
   line-height:3.6em;
   flex-grow:2;
   flex-shrink:2;
   flex-basis:21%;
}

.line {
   ;
   position: relative;
   background: #0099FF;
   height: .4em;
   border-radius: 2px;
   display: table-cell;
   height: 6px;
   flex-grow: 1;
   flex-shrink: 1;
   flex-basis: 39%;
}
.flexBox {
   display:flex;
   flex-direction:row;
   flex-wrap:nowrap;
   justify-content:center;
   align-content:center;
   align-items:center;
}
</style> 
 </head> 
 <body> 
  <div id="IntroPage" class="introPage flexBox"> 
   <div class="line"></div> 
   <div class="test">
     Lorem ips 
   </div> 
   <div class="line"></div> 
  </div>  
 </body>
</html>

Related Tutorials