DocRaptor Home

PDF Styling & Reference

Styling Basics > Using CSS & Stylesheets

Using CSS in DocRaptor is exactly the same as in normal web pages. You can embed your stylesheet with a style tag:

body {
  background-color: blue;

Or use inline styles:

<a href="" style="color: blue;">DocRaptor!</style>

Or link to an external stylesheets with absolute URLs (or define a baseurl for your document). While we fully support external stylesheets, it is slightly faster to use <style> tags because we don't have to fetch your CSS file.

<link rel="stylesheet" media="screen" href="" />

Ready to get started? Try DocRaptor for free with unlimited test documents.