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

HTML border cut off by adserver

New Here ,
Feb 20, 2017 Feb 20, 2017

I am creating banner ads in Animate 2017, and instead of drawing a border on the Animate stage I've been adding it to the HTML Canvas element with border:1px solid #000000;

But this adds the border to the outside of the banner, so that 300x250px becomes 302x252px, and our Adserver is saying that the banner is being clipped (right and bottom) hiding the border.

I could revert to drawing borders inside Animate,

or make my stage 2px smaller,

or would the new ‘Centre Stage’ and ‘Make Responsive’ Publish settings help here? (I have them both turned off.)

Thanks for your help in advance.

1.2K
Translate
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

correct answers 1 Correct answer

Advocate , Feb 20, 2017 Feb 20, 2017

What I like to do is to add my border to the "dom_overlay_container" div, and also add box-sizing:border-box; to the styling, so that the border goes inside the div instead of outside.

Screen Shot 2017-02-20 at 6.50.53 PM.png

Translate
LEGEND ,
Feb 20, 2017 Feb 20, 2017

Any of your solutions seem ok. I would put the stroke inside Animate.

Translate
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
Advocate ,
Feb 20, 2017 Feb 20, 2017

What I like to do is to add my border to the "dom_overlay_container" div, and also add box-sizing:border-box; to the styling, so that the border goes inside the div instead of outside.

Screen Shot 2017-02-20 at 6.50.53 PM.png

Translate
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
New Here ,
Feb 20, 2017 Feb 20, 2017
LATEST

Yeah – that works, thanks! Although I'm no coder I prefer to add the border like this than on the timeline. Thanks again.

Translate
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