This forum is now read-only. Please use our new forums! Go to forums
banner
Close banner
I finished this but I still get a little triangle error
This is my CSS code but when I hover over the first line with the border there is a triangle error that says “Using height with border can some times make elements larger than you expect.” Can someone please explain why this happens?
/*Add your CSS below!*/
td {
height: 50px;
border: 1px dashed blue;
}
table {
border: 1px solid black;
}
Answer 544674827c82ca349100c536
1 vote
its due to the IDE codecademy uses, it produces this warning. Some people can this explain in more detail, i can’t.
It doesn’t mean something is wrong with your code, but trust me (from experience) it is good to know that borders can make a element larger (just as padding). it is good to know if you want to make a nice web design.
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
2 comments
OK thanks. I was worried that there was something wrong with the code.
no, it is not. you can put your code in notepad (better use notepad++, or even better sublime) and you will see no such thing