Topic on Project:Support desk

How to make a border in a table only along the top of a row?

3
RedKnight7 (talkcontribs)

I'm trying to make a border along the top of two rows in my table, and only along the top. It has three sets of data in it, so the border is intended to separate them. I'm using this code:

|- style="border: 2px solid;"
 |rowspan=3| All-Terrain
 |rowspan=3| ATS || 1 || L || +60 ||  -60 || 8 || +52 ||+52 || -58
 |-

but it's trying to make a border on all sides of the cells in that row. That's not what I want, but I can't figure out how to fix it:

I just want two rows whose cell tops separate the three main groups (SS, ATS, and PS)

205.131.184.5 (talkcontribs)

Instead of "border:" try "border-top:".

RedKnight7 (talkcontribs)

Thanks, that worked great!

Now if only there was a code that meant "only do the left border on a particular column, all the way down the table". Like between Simplified and Actual in my table.

I can figure out how to do it individually for each cell, but it'd be a lot easier to make one statement for to do it all the way down the table.

Reply to "How to make a border in a table only along the top of a row?"