So I've just started out playing around with Django (Python) and have noticed some CSS differences I haven't stumbled upon before. And with before I mean during the past years coding mostly HTML/CSS/PHP.
So if I write this in my style.css..
#container {
background: black;
}
I expect this "p" tag below to have a black background, but that's not the case.
<div id="container">
<p>Test</p>
</div>
Somehow "p" overrides the black background of the container-div and I cant figure out why since I haven't written any specific styling rules for the "p" tag. If I remove the "p" tag the container receives its black background.
When I go outside of my Django-project and try this, everything is back to how I normally find it to behave.
Is there any setting in Django I can change or what is the reason for this occurrence?
EDIT: Just wanted to clarify that I haven't included any normalize.css or something like that. The code in this post is the only thing that exists (other than standard Django-files of course), this project which the post asks about was created just for this post.