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

CSS: An Overview Forum

View Course » View Exercise

450 points
29061fa09ff69d59507d8259467ede1a?s=140&d=retro
Submitted by
Joakim P
about 3 years ago

My code doesn't show anything??

Anyone can spot the mistake??

td {
    height: 50px;
}

td {
    border: 1px dashed blue;
}

table {
    border: 1px solid black;
}

All the help is appreciated..


0 votes

permalink

Just so you know, you don't need to select td each time you want to style it with something else, you can just make your code be this:

td {
    height: 50px;
    border: 1px dashed blue;
}

table {
    border: 1px solid black;
}

Your code works fine for me, can you give some more details about the problem?

2819 points
5674c6dae39efec455000434_879409444
Submitted by
Zeke Y
about 3 years ago

5 Comments

29061fa09ff69d59507d8259467ede1a?s=140&d=retro Joakim P about 3 years ago

The reason why i wrote td 2 times is because it says that writing the border code together the other code can make some problems.
It shows the outer border, but not 9 nine borders inside!

5674c6dae39efec455000434_879409444 Zeke Y about 3 years ago

It's OK, you can ignore the yellow warning. It's when you get a little red "X" that you need to worry :). I'm not sure why the td's aren't getting borders, but I'll let you know if I figure it out. Sorry I can't really help right now :(

6fe8313d8430841630f219883dbf5745?s=140&d=retro BuilderJim about 3 years ago

I'm having the exact same problem and results as our friend, Joakim. Here's what I'm seeing, even after trying it on different browsers. -http://tinypic.com/r/f0uvb6/8

5674c6dae39efec455000434_879409444 Zeke Y about 3 years ago

I'm seeing it like that too. I don't know why, but I'll let you know if I get any ideas about it.

4c4b05d779c5daaff72a8e5fe165ad99?s=140&d=retro Rob McConachie about 3 years ago

The reason you are not getting a blue border is because the cells don't contain anything. If you go back to the HTML side and add " " (minus the ") you will see the cells. This is a issue with HTML and how it displays tables and the code for this could be updated to ensure it shows.