CSS - marks


Description

The marks property is used to set crop marks and cross marks on paged media. This is used with the @page rule.

Possible Values

  • crop − Directs that crop marks be placed on the page.

  • cross − Causes the user agent to add cross marks to the page.

  • none − No marks should be placed on the page.

Applies to

Page context

DOM Syntax

object.style.marks = "crop"

Example

Here is the example −

<html>
   <head>
      <style>
         mark {
            background-color: yellow;
            color: black;
         }
      </style>
   </head>

   <body>
      <p>Tutorialspoint.com</p>
      
      <mark>Tutorialspoint.com</mark>
      <p>Tutorialspoint.com</p>
   </body>
</html> 
css_references.htm
Advertisements