<PLEASE USE THE FOLLOWING TEMPLATE TO HELP YOU CREATE A GREAT POST!>
<Below this line, add a link to the EXACT exercise that you are stuck at.>
https://www.codecademy.com/en/courses/web-beginner-en-TlhFi/3/2?curriculum_id=50579fb998b470000202dc8b#
<In what way does your code behave incorrectly? Include ALL error messages.>
```
table {
border: 1px solid black;
}
<do not remove the three backticks above>
You need to use the td
selector to add a border to the cells
I miswrote the title of my question. The border around the table will not show.
mtf
March 18, 2016, 11:48pm
#4
What browser are you using? Your CSS is correct.
Chrome Version 48.0.2564.116 (64-bit)
mtf
March 19, 2016, 12:59am
#6
No problem here (Chrome Version 49.0.2623.87 m) 64 bit.
ill update and post results.
Version 49.0.2623.87 (64-bit) Still no border.
mtf
March 19, 2016, 7:12am
#9
Please post your complete CSS and HTML once more, so we can test with the full suite. Thank you. Should probably have asked which version of Windows? (Iβm using 7 Professional)
<!DOCTYPE html>
<html>
<head>
<link type="text/css" rel="stylesheet" href="stylesheet.css"/>
<title></title>
</head>
<body>
<table>
<thead>
<th colspan="3">Nine Blocks!</th>
</thead>
<tbody>
<tr>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td></td>
<td></td>
<td></td>
</tr>
</tbody>
</table>
</body>
</html>
td {
height: 50px;
border: 1px dashed blue;
table {
border: 1px;
}
mtf
March 19, 2016, 7:56am
#13
table {
border: 1px solid black;
}
Thats what I had earlier. I do not know why it changed. I updated my code and still no black border.
mtf
March 19, 2016, 8:00am
#15
What about,
table {
border: 1px solid black;
}
I did not . Tried it. Still no border.
mtf
March 19, 2016, 8:09am
#19
Iβm knackered; just donβt know what to suggest.
Me neither. I am taking the rest of the night off from coding. I will tackle it tomorrow. Thanks for your time.
1 Like
I found my mistake. I forgot a curly brace after the td.
before
βββ
td {
height: 50px;
border: 1px dashed blue;
βββ
after
βββ
td {
height: 50px;
border: 1px dashed blue;
}
βββ