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

CSS: An Overview Forum

View Course » View Exercise

817 points
1020d917143fb4a7b58ee4dae2bf77ca?s=140&d=retro
Submitted by
AsherDevaprise
over 2 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

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.

2410 points
5671826195e378c47d000782_659060817
Submitted by
stetim94
over 2 years ago

2 Comments

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

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

5671826195e378c47d000782_659060817 stetim94 over 2 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