Issue with applying dotted border to cells in table design

后端 未结 9 1142
不知归路
不知归路 2021-01-12 07:48

Here\'s my fiddle:

http://jsfiddle.net/gFA4p/84/

In this screenshot, the green lines represent where I\'m trying to apply dotted lines.

9条回答
  •  孤城傲影
    2021-01-12 08:23

    This works if I add inline styles to the HTML and get rid of the class names.

    http://jsfiddle.net/jasongennaro/xWSKD/1/

    EDIT

    This also works if I add the styles to the css with an !important declaration

    .dottedRight{border-right:2px dotted black !important;}
    
    .dottedBottom{border-bottom:2px dotted black !important;}
    

    http://jsfiddle.net/jasongennaro/xWSKD/2/

    Note

    The fiddles show the dotted line as red only to point out the change. See above code for correct use.

    Also, see the comment below re implications of using !important ( What are the implications of using "!important" in CSS? )

提交回复
热议问题