20. Bordering on Insanity-Black border will not show around table


#1


https://www.codecademy.com/en/courses/web-beginner-en-TlhFi/3/2?curriculum_id=50579fb998b470000202dc8b#


table  {
    border: 1px solid black;
}


#2

You need to use the td selector to add a border to the cells


#3

I miswrote the title of my question. The border around the table will not show.


#4

What browser are you using? Your CSS is correct.


#5

Chrome Version 48.0.2564.116 (64-bit)


#6

No problem here (Chrome Version 49.0.2623.87 m) 64 bit.


#7

ill update and post results.


#8

Version 49.0.2623.87 (64-bit) Still no border.


#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)


#11

<!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>

#12

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

table  {
    border: 1px;
}

#13

table  {
    border: 1px solid black;
}

#14

Thats what I had earlier. I do not know why it changed. I updated my code and still no black border.


#15

What about,

table {
    border: 1px solid black;
}

#16

That is now what I have.


#17

With only one space?


#18

I did not . Tried it. Still no border.


#19

I'm knackered; just don't know what to suggest.


#20

Me neither. I am taking the rest of the night off from coding. I will tackle it tomorrow. Thanks for your time.


#21

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;
}

'''