Reverse Display of an ordered list - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:UL Element

Description

Reverse Display of an ordered list

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">
ol {<!--   w  w  w . jav a 2s. com-->
   display:flex;
   flex-direction:column-reverse;
}
</style> 
 </head> 
 <body>
   Lorem ipsum dol 
  <ol> 
   <li>Lorem ipsu</li> 
   <li>Lorem ipsum dolor si</li> 
   <li>Lorem ipsum </li> 
   <li>Lorem ipsum </li> 
   <li>Lorem ipsum</li> 
  </ol>  
 </body>
</html>

Related Tutorials