Friday 15 February 2013

css - Unable to apply border to Table td -


I should be overlooking something and I should find out. I have applied the boundaries on my table cells and they are not showing up. Please take a look at the markup and CSS below and can help me. It has been told here that I have implemented the Myers CSS reset in my stylesheet, it is not certain that there is a difference.

  & lt; Table & gt; & Lt; Captions & gt; Your Upcoming Billed Due Date & lt; / Caption & gt; & Lt; Thead & gt; & Lt; TR & gt; & Lt; Th scope = "colonel" & gt; & Lt; / Th & gt; & Lt; Th scope = "colonel" & gt; Bill Date & lt; / Th & gt; & Lt; Th scope = "colonel" & gt; Bill Name & lt; / Th & gt; & Lt; Th scope = "colonel" & gt; Amount & lt; / Th & gt; & Lt; Th scope = "colonel" & gt; Frequency & lt; / Th & gt; & Lt; Th scope = "colonel" & gt; Last paid & lt; / Th & gt; & Lt; / Thead & gt; & Lt; / TR & gt; & Lt; TR & gt; & Lt; TD & gt; & Lt; / TD & gt; & Lt; Td> March 7, 2013 & lt; / Td> & Lt; TD & gt; Care of children & lt; / TD & gt; & Lt; TD & gt; $ 560 & lt; / TD & gt; & Lt; TD & gt; Weekly & lt; / TD & gt; & Lt; Td> February 26, 2013 & lt; / Td> & Lt; / TR & gt; & Lt; TR & gt; & Lt; TD & gt; & Lt; / TD & gt; & Lt; Td> June 13, 2013 & lt; / Td> & Lt; Td> Water bill & lt; / Td> & Lt; TD & gt; $ 125.60 & lt; / TD & gt; & Lt; TD & gt; Monthly & lt; / TD & gt; & Lt; Td> May 2, 2013 & lt; / Td> & Lt; / TR & gt; & Lt; / Table & gt;   

And here's the CSS

  Table {Clear: Both; Border: 2px solid blue; Boundary: Separate; } TD th (range: 2px solid red;}    

Fall can change: collapse; to boundary-difference: 0; , but

TD th (range: 2px solid red;)

should be written

  TD, th (range: 2px solid red;}    

No comments:

Post a Comment