Skip to main content
fortangela1000
Known Participant
October 1, 2010
Question

'x-next' being inserted into .css

  • October 1, 2010
  • 1 reply
  • 1797 views

We are required to do a W3C CSS validation of all projects. I actually wrote my css without using the Styles and Formatting pod. I didn't add any 'x-next' into my styles, but they get inserted anyway, as you will see below:

H2 {
font-weight: bold;
font-style: normal;
margin-left: 0px;
color: #000000;
font-family: Arial;
font-size: 20px;
letter-spacing: normal;
margin-bottom: 6px;
x-next-class: ;
x-next-type: P;
margin-top: 24px;
}

I noticed in a sample they also had these all over the table styles:

table.Colorful1 {

padding: 0px;

border-left-style: Solid;

border-left-width: 1px;

border-left-color: #000000;

border-top-style: Solid;

border-top-width: 1px;

border-top-color: #000000;

x-border-spacing: 0px;

x-1st-row: 1;

x-1st-row-name: row1;

x-1st-col: 1;

x-1st-col-name: col1;

}

When you use the W3C Validation Service (http://jigsaw.w3.org/css-validator/#validate_by_input), these show as

parse errors (Property x-next-type doesn't exist : P P ). Why does RoboHelp keep inserting these into my css? Since we are not allowed to publish anything that isn't 100% validated, I have to continually remove these. Does this have any negative impact on my projects? Why are W3C deprecated items allowed by RH?

If I am posting to the wrong forum, please let me know. I'm not yet totally familiar with this site.

This topic has been closed for replies.

1 reply

Willam van Weelden
Inspiring
October 1, 2010

Hi,

The x- styles are a way for RoboHelp to keep track of certain settings you can't set in CSS. The x-next-class and x-next-type determine the next paragraph you get. In your case, after a H2, you get a paragraph with style 'normal'.

You can remove these attributes from your style sheet, but you will lose certain features. For instance, the next paragraph will allways be a normal paragraph. The x- styles in the table help creating tables with opposite row colours etc.

Greet,

Willam

Pressed the wrong button...

fortangela1000
Known Participant
October 1, 2010

Well, it certainly is unfortunate we can't submit projects that are 100% W3C compliant or they rejected. Any idea why W3C no longer supports these as valid?

Willam van Weelden
Inspiring
October 1, 2010

Hi,

It's never been valid css. Actually, it isn't css at all. It are RoboHelp control codes that RH puts in your css. Css is a markup language, the x styles are commands for RoboHelp. Usefull, but not W3C compliant.

Checking "Create W3C compliant topics" in the output options doesn't help either. You may want to report it as a bug.

Greet,

Willam