Anyone know what this message means please?
CSS: C:\xxxx\Flare\Content\xxxx\xxxx\xxxx.htm: CSS: Invalid float: aligncenter
(Also may be alignleft - haven't yet seen anything other that alignment messages.)
In message pane in analyzer.
Can't find "aligncenter" in the .css file or the offending html files.
CSS: Invalid float: aligncenter
-
Andrew Heard
- Sr. Propeller Head
- Posts: 139
- Joined: Tue Aug 19, 2008 12:17 am
- Location: Perth, Western Australia
CSS: Invalid float: aligncenter
Some mornings it just doesn't seem worth it to gnaw through the leather straps.
-
alaltenburg
- Sr. Propeller Head
- Posts: 342
- Joined: Mon Nov 03, 2008 9:33 am
- Location: The heart of America
Re: CSS: Invalid float: aligncenter
Is .aligncenter set up as a generic class, or is it defined in another class?
The Moon is the first milestone on the road to the stars.
— Arthur C. Clarke
— Arthur C. Clarke
-
KevinDAmery
- Propellus Maximus
- Posts: 1985
- Joined: Tue Jan 23, 2007 8:18 am
- Location: Darn, I knew I was around here somewhere...
Re: CSS: Invalid float: aligncenter
Based on the error, it looks like someone tried to use "aligncenter" as a float attribute. That isn't a valid setting, though, so I'm not surprised that Analyzer doesn't like it. The valid attributes for float can be found here:
http://www.w3schools.com/css/pr_class_float.asp
Basically, you can choose left, right, or none.
http://www.w3schools.com/css/pr_class_float.asp
Basically, you can choose left, right, or none.
Until next time....

Kevin Amery
Certified MAD for Flare
Kevin Amery
Certified MAD for Flare
-
Andrew Heard
- Sr. Propeller Head
- Posts: 139
- Joined: Tue Aug 19, 2008 12:17 am
- Location: Perth, Western Australia
Re: CSS: Invalid float: aligncenter
Thanks for that - problem is that nowhere in the stylesheet css file or the offending htm file can I find the text "aligncenter".
The code (imported from RH X5) is typically ugly - it has LOADS of redundant tags and parameters. I spent a couple of months picking out redundant code and Analyzer is finding even more.
For instance, an example of "align" use is:
<p class="TableHeading" style="text-align: center;" align="center">
In this case, p.TableHeading is centre-aligned (sorry, center-aligned
), so I'd prefer to have just <p class="TableHeading"> - works just fine. What's more, if I ever changed the alignment of TableHeading, it would be overridden by the unwanted align parameters. But that's another matter.
I wonder if the superfluous parameters are causing the aligncenter error, or if there is something more insidious going on.
Could be just a case of "if it ain't broke don't fix it".
The code (imported from RH X5) is typically ugly - it has LOADS of redundant tags and parameters. I spent a couple of months picking out redundant code and Analyzer is finding even more.
For instance, an example of "align" use is:
<p class="TableHeading" style="text-align: center;" align="center">
In this case, p.TableHeading is centre-aligned (sorry, center-aligned
I wonder if the superfluous parameters are causing the aligncenter error, or if there is something more insidious going on.
Could be just a case of "if it ain't broke don't fix it".
Some mornings it just doesn't seem worth it to gnaw through the leather straps.
-
KevinDAmery
- Propellus Maximus
- Posts: 1985
- Joined: Tue Jan 23, 2007 8:18 am
- Location: Darn, I knew I was around here somewhere...
Re: CSS: Invalid float: aligncenter
There was a thread a few weeks back about using regular expressions to find and replace things like this. If you can, I would try to completely remove all of the in-line formatting like that, leaving only the classes.
Analyzer may be able to help with that as well.
Analyzer may be able to help with that as well.
Until next time....

Kevin Amery
Certified MAD for Flare
Kevin Amery
Certified MAD for Flare
-
Andrew Heard
- Sr. Propeller Head
- Posts: 139
- Joined: Tue Aug 19, 2008 12:17 am
- Location: Perth, Western Australia
Re: CSS: Invalid float: aligncenter
Got it.
float=aligncenter was set in a snippet created from a footer in an imported RH template.
And the search-and-destroy function is proving very useful for getting rid of the multitude of inline formatting contamination, in conjunction with Analyzer - thanks, Kevin.
The project does have a legacy going back 10 or 12 years, so I shouldn't complain too much.
float=aligncenter was set in a snippet created from a footer in an imported RH template.
And the search-and-destroy function is proving very useful for getting rid of the multitude of inline formatting contamination, in conjunction with Analyzer - thanks, Kevin.
The project does have a legacy going back 10 or 12 years, so I shouldn't complain too much.
Some mornings it just doesn't seem worth it to gnaw through the leather straps.
Re: CSS: Invalid float: aligncenter
I found this in my tables:
When inserting a table, in the Table Properties it allows you define an "Align" property. We were using "center" on this. Now I'm think that is what is causing the error message for us and possible some topic display issues in our compiled project. We use a TON of tables in our documentation.

Code: Select all
float: aligncenter;Re: CSS: Invalid float: aligncenter
Not sure it helps anyone, but the float: alignleft or aligncenter code in a table seems to be related to tables that are in a div tag. Not sure how the tables got to be in a div to start with - it could be some weirdness resulting from importing a Robohelp project or could have been a previous author getting over-excited. 
Amber
Amber