2 Replies Latest reply on Apr 2, 2011 9:02 AM by TQM Doctor

    Auto Style Overriding CSS

    TQM Doctor Level 1

      I have a few situations where RoboHelp HTML 9 (9.0.0.228) is cluttering up my HTML by auto adding style statements to HTML tags that override the instructions from the CSS file.  I am only irritated when it rewrites the following because the auto style is simply a duplicated instruction.

       

      <strong> to <strong style="font-weight: bold;">

       

      But when it add inline style statements to link tags it becomes unusable because it overrides my CSS instructions.

       

      <a> to <a style="color: #0000ff; text-decoration: underline; ">

       

      Am I causing this to happen somehow? Is there a setting in RoboHelp where I can turn off theserewrites?

        • 1. Re: Auto Style Overriding CSS
          Willam van Weelden Adobe Community Professional & MVP

          Hi,

           

          RH sometimes does that and I don't know how to disable this behaviour. You can however override this inline styling in your style sheet by using the !important declaration:

           

          strong {

               font-weight: normal !important;

          }

           

          Now your css will override the inline styling.

           

          Greet,

           

          Willam

          1 person found this helpful
          • 2. Re: Auto Style Overriding CSS
            TQM Doctor Level 1

            Hi William!

             

            I ashamed to say that I didn't know about the '!important' declaration for CSS.    I applied !important to my links <a> and they all work now, even when RH tries to overwrite my CSS work.

             

            Your solution has reduced my situation from unusable to merely irritating. 

             

            Thank you!