This forum is now read-only. Please use our new forums! Go to forums

banner
Close banner
0 points
Submitted by AsherDevaprise
over 9 years

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

Permalink

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.

points
Submitted by stetim94
over 9 years

2 comments

AsherDevaprise over 9 years

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

stetim94 over 9 years

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