GraphStream Users

Archives de la liste Aide

Re: node styling via CSS

Chronologique Discussions 
  • From: Stefan Balev <stefan.balev AT>
  • To: "graphstream-users AT" <graphstream-users AT>, emixp AT
  • Subject: Re: node styling via CSS
  • Date: Mon, 26 May 2014 10:00:57 +0200


The default viewer supports only a limited subset of CSS. Use the advanced viewer for full support:


Best regards,


2014-05-26 6:55 GMT+02:00 <emixp AT>:

I am currently playing around with a minimal application which just creates a
small graph and displays it.

Coloring and re-sizing the nodes using CSS classes works fine, adding labels to
the nodes too.

However, the following CSS code seems to do nothing:

node {
  text-alignment: under;
  text-background-color: #C0C0C0;
  text-background-mode: rounded-box;

I'm adding the labels to the nodes like this: node.addAttribute("ui.label",

Sadly, there is no error message or exceptions, just nothing changes.

What could I do to identify the issue here?

Thank you,

Archives gérées par MHonArc 2.6.16.

Top of page