Skip to main content
April 24, 2012
Answered

Robohelp 8 & CSS Class attribute

  • April 24, 2012
  • 1 reply
  • 422 views

I have been trying to use the CSS Class attributes but it doesn't seemed to be recognized by Robohelp 8. Here is an example of my code:

My external style sheet:

Test {

          width: 562px;

          height: 16px;

          text-align: center;

          font-family: Arial, Helvetica, sans-serif;

          font-weight: bold;

          color: #ffff00;

}

Test1 {

          background-color: #00900;

}

Test2 {

          background-color: #008000;

}

In my file:

<link rel="Stylesheet" href="layout.css" type="text/css" />

<div class="Test Test1">

     I type something here

</div>

The text that I type is rendered but none of the formatting.  What am I doing wrong?

Does anyone know if there is a problem with Robohelp 8 not supporting CSS classes?

Thanks!

Message was edited by: Lakooli

This topic has been closed for replies.
Correct answer Willam van Weelden

Hi,

Add a dot (.) before the class definitions in your css:

.Test -> All elements that have the class test

Or even better:

div.Test -> Only DIV element that have the class test

Greet,

Willam

1 reply

Willam van Weelden
Willam van WeeldenCorrect answer
Inspiring
April 25, 2012

Hi,

Add a dot (.) before the class definitions in your css:

.Test -> All elements that have the class test

Or even better:

div.Test -> Only DIV element that have the class test

Greet,

Willam

April 25, 2012

Thanks William!

Worked like a charm!

Lori