Cannot set background color to border in code

@Vermond I was facing the same issue.Thanks. It was really helpful.