Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS Changing a table's border color

  • This topic is empty.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #267798
    drone4four
    Participant

    Have a look at this testcase: https://codepen.io/Angeles4four/pen/PQgxdR?editors=1100

    I’m trying to get the outermost border to be white or transparent so the 3×3 table looks like a game of tic-tac-toe.

    Anyone know how to achieve this effect?

    Take note of line 4 in my CSS. There I added a white value to the border property for the table element. No dice.

    I feel like the answer to my question is obvious and it is staring at me in the face.

    Can anyone please lend a helping hand?

    Thanks for your attention.

    #267800
    Xiija
    Participant

    mebbe…
    border: 5px solid white;

    #267807
    Beverleyh
    Participant

    Yes, something like border: 5px solid white; applied to the table element, instead of your current line 4

    #267853
    drone4four
    Participant

    When I added border: 5px solid white; to my table element, nothing changed. But when I added it to my tg class element, that did the trick. Thank you both for the help.

    =D

Viewing 4 posts - 1 through 4 (of 4 total)
  • The forum ‘CSS’ is closed to new topics and replies.