Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

thead does not display border

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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
tiny glitch in my main slider 3 39
Ouput in html in powershell 2 20
really easy css change help please 4 19
Change static entered data to dynamic with counter 5 12
CSS is a visual language used to classify objects and define rules about how they should be displayed. CSS skills aren’t restricted to developers anymore, there is a big benefit to having a basic understanding of the language, regardless of your occ…
Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
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…
HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…

828 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