Solved

thead does not display border

Posted on 2015-02-01
4
70 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

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Crazy text will not be removed no matter what I try! 13 29
Bottom border change 5 13
Hide cell in a table 2 9
Index on a Table 6 8
So you have coded your own WordPress plugin and now you want to allow users to upload images to a folder in the plugin folder rather than the default media location? Follow along and this article will show you how to do just that!
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
In this tutorial viewers will learn how to style a decorative dropcap for the first letter in a paragraph using CSS. In CSS, create a new paragraph class by typing "p.fancy": Then, to style only the first letter of the first sentence, include the ps…
The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…

774 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