CSS Outline



An outline is a line drawn outside the element's border.

Example


      <!DOCTYPE html>
      <html>
      <head> 
      <style> 

      p  {
        border:2px solid black;
        outline:#4CAF50 solid 10px;
        margin:auto;
        padding:20px;
        text-align:center;

            }

      </style> 
      </head> 
      <body> 

      <h2>CSS Outline</h2>
    
      <p>ACADEMY OF INFORMATION TECHNOLOGY</p>
        
          </body>
          </html>
                
              
Result:
Example Image