# Table CSS help needed

**URL:** <https://forums.realmacsoftware.com/t/table-css-help-needed/17925>\
**Category:** RapidWeaver Classic\
**Tags:** css\
**Created:** [January 5, 2018, 7:48pm UTC](https://forums.realmacsoftware.com/t/table-css-help-needed/17925 "2018-01-05T19:48:28Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mathew](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/mathew/32/2771_2.png) [@Mathew](https://forums.realmacsoftware.com/u/Mathew)\
**Post date:** [January 5, 2018, 7:48pm UTC](https://forums.realmacsoftware.com/t/table-css-help-needed/17925/1 "2018-01-05T19:48:28Z")

</div>

I am creating some tables in Markdown and using in a website. I have most of the CSS I want to use in place but there’s one part I can not figure out.

Here’s the relevant example table:  
[https://mathewusf.com/storylab2018/table/](https://mathewusf.com/storylab2018/table/)

If there are folks who are more CSS savvy than me (which is many of you) here’s what I can’t figure out:

- the top header row is the problem
- solution 1: header row contains no borders on the sides (vertical) between cells
- solution 2: header row contains borders (as is) plus a border at the very top

Essentially the problem is my header row does not have a top border and I’ve tried various tweaks but with no success. Any suggestions?

---

<div class="post-metadata">

**Author:** ![swilliam](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/swilliam/32/14799_2.png) [@swilliam](https://forums.realmacsoftware.com/u/swilliam)\
**Post date:** [January 5, 2018, 7:59pm UTC](https://forums.realmacsoftware.com/t/table-css-help-needed/17925/2 "2018-01-05T19:59:24Z")

</div>

just target the table and add a border-top: X pixels solid

My Guess - What’s going on is that you have the top margin set to -1 which is why you are not seeing it. Make it at least 2 px and you will see it

---

<div class="post-metadata">

**Author:** ![teefers](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/teefers/32/8173_2.png) [@teefers](https://forums.realmacsoftware.com/u/teefers)\
**Post date:** [January 5, 2018, 8:03pm UTC](https://forums.realmacsoftware.com/t/table-css-help-needed/17925/3 "2018-01-05T20:03:55Z")

</div>

Scott bet me to it…

---

<div class="post-metadata">

**Author:** ![swilliam](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/swilliam/32/14799_2.png) [@swilliam](https://forums.realmacsoftware.com/u/swilliam)\
**Post date:** [January 5, 2018, 8:05pm UTC](https://forums.realmacsoftware.com/t/table-css-help-needed/17925/4 "2018-01-05T20:05:15Z")

</div>

a rare occourance indeed…😉

---

<div class="post-metadata">

**Author:** ![Mathew](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/mathew/32/2771_2.png) [@Mathew](https://forums.realmacsoftware.com/u/Mathew)\
**Post date:** [January 5, 2018, 8:15pm UTC](https://forums.realmacsoftware.com/t/table-css-help-needed/17925/5 "2018-01-05T20:15:48Z")

</div>

Thanks to both of you. Yes, the problem was a margin set to -1 that I did not notice. Many thanks!!!

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/system/32/25301_2.png) [@system](https://forums.realmacsoftware.com/u/system)\
**Post date:** [January 11, 2018, 8:15pm UTC](https://forums.realmacsoftware.com/t/table-css-help-needed/17925/6 "2018-01-11T20:15:57Z")

</div>

This topic was automatically closed 6 days after the last reply. New replies are no longer allowed.
