So this probably isnt a bug or an issue what so ever but still I am very curious as to why the preview (or the code) behaves that way…
So I am on CSS lesson step 19
which basically needs me to type this
body {
background-color: brown;
}
the thing is that by doing this (and despite this being the correct answer that the script accepts, I dont see brown but rather something like burgunty or something…
Ok I thought maybe my laptop screen color calibration is waayyy off…
but then I thought to google the hex code for brown (#964b00) so when on the same step I enter this instead:
body {
background-color: #964b00;
}
The preview of the code looks indeed brown… thus my monitor’s calibration is allright as it seems…
So how come? I mean if HTML has a predefined value for the keyword “brown” shouldnt that value be #964b00? why is it different?
Or it is not different and this is an issue on freecodecamp’s side of things?
Hi, I thought there is only one lesson for html-css anyway my bad…
The lesson name is responsive web design
I did the html centered cat website and am now on the CSS part where you style a page for a cafe or what not and this I noticed on step 19 of that lesson.
body {
background-color: brown;
}
h1, h2, p {
text-align: center;
}
again on the styles.css file if I change the value of the background-color from “brown” (as it is shown above) to #964b00 (which google tells me its the css hex value for brown) I see brown on my monitor… but if I leave it as is so the value being the string “brown” it displays a color that’s more reddish like burgundy or something instead of brown but this could be subjective interpretation the objective one is that value “brown” and value “#964b00” do NOT display the same color on the preview of the lesson.
I mean shouldn’t the HTML value “brown” be the same as the hex brown ( #964b00)?
Like does the code do the same thing even if you use a ID like VScode or something? lol I try it later to check ha!
edit:
I googled the hex value you gave (#A52A2A) and it is the same on my screen as if I was entering the value “brown” as a string. but googling that hex value I think we can confirm that its not brown or a redish brown but outright red… not even close to the brown spectrum.
This makes things even more strange because now the css value “brown” for the background-color attribute isnt just a “off set redish brown” instead of being a "dead center " brown but actually is an entirely different color lol like the guys who maintain HTML5 should take a look on this