• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

RH9 repeatedly inserting inline Border style

Guest
Jan 07, 2014 Jan 07, 2014

Copy link to clipboard

Copied

I have a Webhelp project using a custom CSS file. In the CSS, I've specified the img tag to have certain settings (1px,solid,gray). However, when I look in the Design view at a topic that has an image included, there is no border. When I check the HTML view, it shows this inline style: Border="0". If I delete that deprecated style setting, then check the Design view again, the border styles set in the CSS file apply. But as soon as I click back to the HTML view, that same inline style has been inserted again.

Has anyone seen this behavior and found a fix?

I've checked for other img or border settings, but can't find anything. Please tell me that I don't have to set the inline styles that I want to use for every single image.

Thanks!

Views

429

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jan 08, 2014 Jan 08, 2014

Copy link to clipboard

Copied

No fix, but there is a workaround: In your CSS, add !important to the

style definition.

img

This overrides the inline styling. But RoboHelp will still add it for

images you add. Alternatively, you may automate removing that inline

styling with a script. But you need to know that removing the inline

styling is what you really want.

Kind regards,

Willam

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Jan 08, 2014 Jan 08, 2014

Copy link to clipboard

Copied

William,

Thanks for the quick response and the insight. I'll try the !important

route.

It sounds like this is a known-issue. For my own edification, do we know

generally why RH is doing this?

Scot Hanson

QA / Technical Writer

R7 PBS Apps Team

ISS

--- a message from the cloud ---

On Wed, Jan 8, 2014 at 3:43 AM, Willam van Weelden <forums_noreply@adobe.com

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jan 10, 2014 Jan 10, 2014

Copy link to clipboard

Copied

Why it was originally implemented is a bit of a guess, but my 50 cents:

When you add an image and later place a hyperlink on the image, the

browser will by default place a fat, blue line around the image. My

guess is that this behaviour was added to avoid browsers from adding a

line around the image and thus having a better WYSIWYG effect. And by

adding the border inline, this fix does not depend on any CSS setting a

user might or might not have.

But it is speculation. Perhaps Rick, Peter or John can remember this far

back

Kind regards,

Willam

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Jan 10, 2014 Jan 10, 2014

Copy link to clipboard

Copied

LATEST

Thanks for the insight!

Scot Hanson

QA / Technical Writer

R7 PBS Apps Team

ISS

--- a message from the cloud ---

On Fri, Jan 10, 2014 at 8:43 AM, Willam van Weelden <

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
RoboHelp Documentation
Download Adobe RoboHelp