To answer your wondering, verify first that you wrote the class name correctly. You called it “continer” in CSS, verify if in the HTML you call this class using “continer” or maybe “container” or anything else.
After, know that these properties will work with blocks. So if there are inline tags and not block tags for example it will not work as you wish and you will encounter issues. You should share all your code because it is a little bit hard to identify where you should focus your efforts.