Welcome to yEd Q&A!
Here you can ask questions and receive answers from other members of the community and yEd developers. And you can tell us your most wanted feature requests.

Categories

Use CSS in node text

0 votes
Hello,

I am using yEd to generate process flowcharts to compliment a web application.  The application uses CSS to format certain HTML (i.e. links) accross the application.

i would like to use the CSS to format node labels and keep them consistent with each other and the application.

Is it possible to define a CSS file which all charts will have sccess to?

Thanks,

Michael.
in Help by (130 points)

1 Answer

+1 vote

Yes, you can use a CSS stylesheet file, however you will have to reference your stylesheet using an absolute URL. E.g.

<html>
  <head>
    <link rel="stylesheet" href="file:/home/username/my.css"/>
  </head>
  <body>
...
  </body>
</html>

or

<html>
  <head>
    <link rel="stylesheet" href="http://myserver.de/my.css"/>
  </head>
  <body>
...
  </body>
</html>

will (or rather would if "real" URLs were used) both work whereas

<html>
  <head>
    <link rel="stylesheet" href="./my.css"/>
  </head>
  <body>
...
  </body>
</html>

will not. (Of course, referencing a stylesheet on a webserver requires an internet connection.)

by [yWorks] (160k points)
Thanks Thomas,

Works perfectly.

Michael.
Legal Disclosure | Privacy Policy
...