Jack Bua
Posts: 0
Joined: Sun Jun 28, 2015 10:16 pm

Changing Particular Grid Cell Border Color

Like in this post:

https://getsatisfaction.com/apperyio/...

I am trying to change the color (and size) of only a particular side of a grid cell. In this case, I want a top, black border only.

This is my css:
td [name="cell_top_brdr_A"] {
border-top-style: solid !important;
border-top-width: 1px !important;
border-top-color: #000000 !important;
border-bottom-width: 0px !important;
border-right-width: 0px !important;
border-left-width: 0px !important;
}
The name of the cell is spelled correctly, and here is a picture of that cell:

Image

The green border is an overlay on the image to highlight the cell.

How would I just change the top border of that cell only?

Serhii Kulibaba
Posts: 150
Joined: Tue Aug 27, 2013 1:47 pm

Changing Particular Grid Cell Border Color

Hello,

Olease use cell's name in the CSS selector. E.g.:

pre[name=mobilegridcell_12]{
border-top:1px solid red;
}/pre

Jack Bua
Posts: 0
Joined: Sun Jun 28, 2015 10:16 pm

Changing Particular Grid Cell Border Color

The syntax you suggested works. Thank you.

Jack Bua
Posts: 0
Joined: Sun Jun 28, 2015 10:16 pm

Changing Particular Grid Cell Border Color

Is there any way to assign this css formatting to cells by NOT referencing their whole name, but instead maybe just a part? Like maybe the cells I want to have a border on could have "top_border" in their name and the css applies to only those cells.

Serhii Kulibaba
Posts: 150
Joined: Tue Aug 27, 2013 1:47 pm

Changing Particular Grid Cell Border Color

sure, please use CSS selector like:
pre[name*=top_border]{
border-top:1px solid red;
}/pre

Jack Bua
Posts: 0
Joined: Sun Jun 28, 2015 10:16 pm

Changing Particular Grid Cell Border Color

Thank you very much. I'm slowly learning. Thanks for all of your help.

Return to “Issues”