The PokéCommunity Forums

The PokéCommunity Forums (https://www.pokecommunity.com/index.php)
-   Off-Topic (https://www.pokecommunity.com/forumdisplay.php?f=23)
-   -   CSS Question (https://www.pokecommunity.com/showthread.php?t=23358)

PichuSecretBase November 26th, 2004 4:20 AM

CSS Question
 
Okay Lets say I have a table and it is

Code:

<table class="contenttb"><td><td>Content!</td><td>MORE CONTENT!</td></tr></table>


and this in my CSS
Code:

.contenttb {
font-family: Verdana;
font-size: 10px;
color: #000000;
border:solid 1px #000000; }


Why does my table border only go around the edge and not between colomns and rows?

Cherrim November 26th, 2004 12:39 PM

@[email protected] I just tested it out and this seems to work:

Code:

<table class="newtableclass"><td><td class="contenttb">Content!</td><td class="contenttb">MORE CONTENT!</td></tr></table>


Code:

.newtableclass {
        border-collapse: collapse;
  }
  .contenttb {
          font-family: Verdana;
          font-size: 10px;
          color: #000000;
          border-width: 1px;
          border-style: solid;
          border-color: #000000;
  }


^_^; The TD tags need to have their borders set individually. The "border-collapse" attribute basically gets rid of the cellspacing in-between.

PichuSecretBase November 26th, 2004 1:42 PM

Thankyou Lightning :3 *goes to do more work*

Dragonfree November 27th, 2004 11:03 AM

Change this:

Code:

<table class="contenttb"><td><td>Content!</td><td>MORE CONTENT!</td></tr></table>


to this:

Code:

<table class="contenttb"><tr><td>Content!</td><td>MORE CONTENT!</td></tr></table>


too.


All times are GMT -8. The time now is 5:32 PM.


Like our Facebook Page Follow us on Twitter © 2002 - 2018 The PokéCommunity™, pokecommunity.com.
Pokémon characters and images belong to The Pokémon Company International and Nintendo. This website is in no way affiliated with or endorsed by Nintendo, Creatures, GAMEFREAK, The Pokémon Company or The Pokémon Company International. We just love Pokémon.
All forum styles, their images (unless noted otherwise) and site designs are © 2002 - 2016 The PokéCommunity / PokéCommunity.com.
PokéCommunity™ is a trademark of The PokéCommunity. All rights reserved. Sponsor advertisements do not imply our endorsement of that product or service. User generated content remains the property of its creator.

Acknowledgements
Use of PokéCommunity Assets
vB Optimise by DragonByte Technologies Ltd © 2023.