Videos
Iโm a beginner that only started doing html/css this semester. Iโve been using w3 schools a lot but have realised they teach css mainly as internal typing it in with your html code instead of externally and then linking it in which is what my lecturer wants.
So my question is how similar is coding css internally to doing it externally throughout css?
Thanks
The issue here is that in your CSS file, with .row.rectangle you are saying that any element that contains the .row class, and then the .rectanglebox class, or any element with the row class that has a child element with the .rectanglebox class will have these styles applied to it.
You can either change your code to class="row rectangleclass" or just change your CSS to simply .rectangleclass { ... }
You forgot the .row class in your div, do this:
HTML:
<div class="row rectanglebox">
<p> sample text </p>
<div>
when you see this: .row.rectanglebox it means that the element have both classes, but your div have only .rectanglebox class.
regards!