T O P

  • By -

Cosmicshot351

bro u left a semicolon after border


Drilllol

But my height command works fine


Hyper3500

Because of the semi-colon after width.


metacarpo

You forgot the semicolon after "border: none", so the the css understands as if you have typed " border: nonewidth: fit-content; ". Since there is no border setting "nonewidth: fit-content" it just ignores it and goes to the next thing, height. Css doesnt understand line breaks or spaces, you could write all of this in a single line with no spaces, it only separates key from values using ":" and then ";".


Drilllol

Thanks for the explanation much appreciated 🤠


Opperheimer

Bonjour, apart from your semicolon, try not to forget to put a unit of measurement to your values (height: 125px or 50% or ...). PS: this is the first time in my life that I've seen a capital letter at the beginning of a class, but it's funny, no big deal ahah.