LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

stylesheet in function panel

Hallo everybody,
 
how is it possible to use a html stylesheet-file (.css) to format the function panel help.
 
Following code does run:
<html>
<head>
  <style type="text/css">
    <!--
      body { font-size:10pt;
             line-height:12pt;
             font-family:Courier;
       }
    //-->
  </style>
</head>
<body>
    description
</body>
</html>
 
 
But the same example with outsourcing code doesn't work:
<html>
<head>
  <link rel="stylesheet" type="text/css" href="MyStyle.css">
</head>
<body>
    description
</body>
</html>
 
 
What possibility does exist to use a extern file for the style? I don't want to change every help text if the style change.
 
 
Please tell me a solution. Thanks.
 
Greetings
0 Kudos
Message 1 of 4
(3,282 Views)

Hello balthamos,

I tried to reproduce the problem you described and found out that *.css stylesheets applied to the HTML function panel help and finally got this working:

Used the following HTML ...

<html>
<head>
<link rel="stylesheet" type="text/css" href="../test.css"/>
</head>
<body>
<b>test</b> Hello
</body>
</html>

and the following CSS ...

BODY {
 background-color: #000000;
 font-family: Arial, Helvetica, Verdana, sans-serif;
 color: #FFFFFF;
 font-size:12px;
}

Specification of the path seems to be a bit weird, as not all path specificatons are valid, although working in IE.

Hope this helps,

Regards,

C.L. - National Instruments Germany

Message 2 of 4
(3,245 Views)
Forgot to tell you to place the test.css in the following path:
 
Drive:\..\CVIxx\bin
 
Regards,
C.L.
Message 3 of 4
(3,242 Views)
Great, that works!
 
Best regards
0 Kudos
Message 4 of 4
(3,144 Views)