Solved

thead does not display border

Posted on 2015-02-01
4
73 Views
Last Modified: 2015-02-02
Hi Experts,

I am working with the attached CSS and HTML file and the thead within the table does not display the bottom border that I have on lines 154-156 of the CSS.

Any ideas?
luncheons.html
main.css
0
Comment
Question by:APD_Toronto
  • 3
4 Comments
 
LVL 83

Expert Comment

by:Dave Baldwin
ID: 40583057
Try using 'th' instead of 'thead'.  'th' is an actual cell in the table while 'thead' is just a grouping and not a visible element.
0
 
LVL 83

Expert Comment

by:Dave Baldwin
ID: 40583065
'tr' won't display a border either because it is also a 'grouping' element, not a visible element.
0
 

Author Comment

by:APD_Toronto
ID: 40583081
In that case I get gaps between my columns
0
 
LVL 83

Accepted Solution

by:
Dave Baldwin earned 500 total points
ID: 40583096
Yep.  Then you want to use 'border-collapse'.  http://www.w3schools.com/cssref/pr_border-collapse.asp  Note also that HTML5 obsoleted quite a few things in 'thead' attributes.
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
CSS Style on Chrome 1 33
JQuery conflicts/syntax issue 4 23
Html split(text) Part2 6 20
Compute age Html 2 23
Building a website can seem like a daunting task to the uninitiated but it really only requires knowledge of two basic languages: HTML and CSS.
This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
In this tutorial viewers will learn how to code links for mobile sites that, once clicked, send a call or text to a specified number. For a telephone link (once clicked, calls a number), begin with a normal "<a href=" link tag. For the href, specify…
In this tutorial viewers will learn how to style different bullet points for unordered lists in CSS. Begin with a normal unordered list; the default bullet point is a solid circle: In the CSS, create a defined class of unordered list by typing "ul.S…

679 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question