Copy link to clipboard
Copied
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
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
Copy link to clipboard
Copied
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
Copy link to clipboard
Copied
Thanks William!
Worked like a charm!
Lori