This forum is now read-only. Please use our new forums at

CSS: An Overview Forum

View Course » View Exercise

817 points
Submitted by
over 3 years ago

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;   

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.

2965 points
Submitted by
over 3 years ago


1020d917143fb4a7b58ee4dae2bf77ca?s=140&d=retro AsherDevaprise over 3 years ago

OK thanks. I was worried that there was something wrong with the code.

5ac0e923961bae76e60003bf_9638442 stetim94 over 3 years ago

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