FANDOM


  • Comparison: w:c:imotwom:User:AtoneTheMage/Colors

    Site-Wide (Current)

    .atone {
        border: 1px solid white; 
        text-align: center; 
        color: #D8D8D8;
        padding: 5px !important;
        border-spacing: 0px;
    }
     
    .atone tr:nth-child(odd) {
        background: #404040;
    }
    .atone tr:nth-child(even){
        background-color: #595959;
    }

    In-Line (Want)

    {| cellpadding="5" cellspacing="0" style="width:100%; border: 1px solid white; text-align: center; color:#D8D8D8;"
    |- style="background: #404040;"
    |
    |
    |- style="background: #595959;"
    |
    |
    |}


      Loading editor
    • I'm not exactly sure what you mean, but put attention that there is a difference between applying styles to a table and applying styles to a div element around a table.

        Loading editor
    • There's a space between the border and the table that I want to get rid of

        Loading editor
    • I forgot to publish changes oops

        Loading editor
    • The HTML attribute cellpadding is specified in the table tag but its effect is on the individual cells. Try this:

      .atone {
          border: 1px solid white; 
          text-align: center; 
          color: #D8D8D8;
          border-spacing: 0px;
      }
      .atone tr:nth-child(odd) {
          background: #404040;
      }
      .atone tr:nth-child(even){
          background-color: #595959;
      }
      .atone th,
      .atone td {
          padding: 5px;
      }
        Loading editor
    • It works 100%

      For future reference, do you two prefer I don't make an additional comment saying the issue is solved? It can be annoying getting a pointless notification

        Loading editor
    • Actually, I like getting the "it worked" messages. It let's me know that the issue has indeed been resolved. It also serves as confirmation for potential future readers that the proposed solution does actually work.

        Loading editor
    • Yes, it is nice and helpful to know that the suggested solution actually worked. Thanks!

        Loading editor
    • A FANDOM user
        Loading editor
Give Kudos to this message
You've given this message Kudos!
See who gave Kudos to this message
Community content is available under CC-BY-SA unless otherwise noted.