How to change color to the hr tag?

Hi guys, How to change color to the hr tag?
Hi try to insert this code:

hr {
border-top: 0.5px solid #ccc;
background: transparent;
}

and I’ve tried others but it never changes anything
Thanks for your attention

Hey there

Let me see it, please provide link to the page and i will check it

Thank you very much for answering me, here is the link of an article:

Hello there,

I hope you are doing well today.

You can use the following CSS code to change the line color by going to Appearance > Customize > Additional CSS and pasting it there.


.page-header {
    border-color: red;
}

Best Regards,
Support

In the Additional CSS it works! why in the style.css file of the child theme does not work for me?
Thanks so much

Hello there,

You are not suppose to place the code there because it will be ignored. Adding the new CSS to the additional CSS section is the correct place to put it.

Best Regards,
Support

Ok, so in the additional CSS when I update the theme will remain unchanged or will I have to add it each time?
thank you very much for the excellent support

Hello there,

It can be removed with a major update, bout you can create a child theme to contain all your changes so they won’t be affected.

Here is a plugin to use:

Best Regards,
Support