This forum is now read-only. Please use our new forums! Go to forums
Did you remember to give your div a height of 50px? Can't get past error
Hi I see others have had same problem. I’m using Chrome and have tried displays from 60 to 120% (mainly the 100% suggested) but no joy. Maybe I’m missing something here – I hope:
/Start adding your CSS below!/ #div { height: 50px; width: 120px; border-color: #6495ED; background-color: #BCD2EE; border: 2px solid red; }
Thanks! I might have to go try this on my old ubuntu laptop!
Answer 5608fcf0d3292f55aa0002ac
Answer 560a48a9d3292f3991000222
0 votes
well, there are two ways to write the border property:
border: 4px dashed red;
or:
border-width: 4px;
border-style: dashed;
border-color: red;
alexax almost did it right, but had border (with 3 values) and border-color. bad combination. you shouldn’t be using border and border-color (i used different values for this examples, otherwise you just copy and paste)
Popular free courses
- Free Course
Learn SQL
In this SQL course, you'll learn how to manage large datasets and analyze real data using the standard data management language.Beginner friendly,4 LessonsLanguage Fluency - Free Course
Learn JavaScript
Learn how to use JavaScript — a powerful and flexible programming language for adding website interactivity.Beginner friendly,11 LessonsLanguage Fluency - Free Course
Learn HTML
Start at the beginning by learning HTML basics — an important foundation for building and editing web pages.Beginner friendly,6 LessonsLanguage Fluency
4 comments
this will leave you with a border-color issue, but i am sure you can figure that out
Thanks so much for this! Yes, I guess I shouldn’t have #div just div.
yes, you should have div. You’re welcome
how do you answer the border-color issue