Home > Web Front-end > CSS Tutorial > Set the width, line style, and color properties of an outline in a single statement using CSS

Set the width, line style, and color properties of an outline in a single statement using CSS

PHPz
Release: 2023-09-04 15:09:04
forward
731 people have browsed it

使用 CSS 在单个语句中设置轮廓的宽度、线条样式和颜色属性

The outline property is a shorthand property that allows you to specify values ​​for multiple properties of the outline, such as width, line style, and color.

Example

<html>
   <head>
   </head>
   <body>
      <p style = "outline:thin solid green;">
         This text is having thin solid freen outline.
      </p>
      <br />
      <p style = "outline:thick dashed #009900;">
         This text is having thick dashed green outline.
      </p>
      <br />
      </p>
   </body>
</html>
Copy after login

The above is the detailed content of Set the width, line style, and color properties of an outline in a single statement using CSS. For more information, please follow other related articles on the PHP Chinese website!

source:tutorialspoint.com
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template