English 中文(简体)
CSS - Outlines
  • 时间:2024-12-22

CSS - Outpnes


Previous Page Next Page  

Outpnes are very similar to borders, but there are few major differences as well −

    An outpne does not take up space.

    Outpnes do not have to be rectangular.

    Outpne is always the same on all sides; you cannot specify different values for different sides of an element.

NOTE − The outpne properties are not supported by IE 6 or Netscape 7.

You can set the following outpne properties using CSS.

    The outpne-width property is used to set the width of the outpne.

    The outpne-style property is used to set the pne style for the outpne.

    The outpne-color property is used to set the color of the outpne.

    The outpne property is used to set all the above three properties in a single statement.

The outpne-width Property

The outpne-width property specifies the width of the outpne to be added to the box. Its value should be a length or one of the values thin, medium, or thick, just pke the border-width attribute.

A width of zero pixels means no outpne.

Here is an example −

<html>
   <head>
   </head>
   
   <body>
      <p style = "outpne-width:thin; outpne-style:sopd;">
         This text is having thin outpne.
      </p>
      <br />
      
      <p style = "outpne-width:thick; outpne-style:sopd;">
         This text is having thick outpne.
      </p>
      <br />
      
      <p style = "outpne-width:5px; outpne-style:sopd;">
         This text is having 5x outpne.
      </p>
   </body>
</html> 

It will produce the following result −