align the list items in an <ol> with my <p> - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:UL Alignment

Description

align the list items in an <ol> with my <p>

Demo Code

ResultView the demo in separate window

<html lang="en">
 <head> 
  <style media="all">
p, ol {
   margin:0;
   padding:0;
}

ol {<!--from  w  ww.  j a v  a 2s  .  c  o m-->
   width:151px
}

li {
   margin-left:19px;
}
</style> 
 </head> 
 <body> 
  <p>Lorem ipsum dolor sit amet, </p> 
  <ol> 
   <li>Lorem ipsum dolor sit amet, consectetur adipisc</li> 
  </ol> 
  <p>Lorem ipsum dolor sit amet, </p>  
 </body>
</html>

Related Tutorials