css style a table
- Started
- Last post
- 8 Responses
- johnnnnyh
I need to style a data table using CSS. I'm struggling to style the border property. If I set the border to 1 on the table and then set the property in css to 1px solid #000066 I still get the horrid grey line as a border and the 1px. I know this is simple but it's so long since I used a table - what's the correct way to style the border on all cells not just the outside?
Thanks.
- 23kon0
if you are using css, why are you using tables?
shouldnt you be using divs?- it's a table containing data not for layoutjohnnnnyh
- but your styling it and its not for layout?maximillion_
- Ya know max, some websites deploy tables for displaying tabular data — which needs to be styled. ;)pylon
- HAYZ1LLA0
Setup a .td style?
.tablestyle
&
.tablestyle td
- mikotondria30
just make the table have a background color, cellspacing of 1, then have the td's have the same background color as yr page..
- Stugoo0
border: 1px solid #006;
- Stugoo0
on table do
<table border="0">td.stylename {border:1px solid #006;}
- without floats
http://www.stugoo.co…Stugoo - I'll thank you for him... :)D_Dot
- without floats
- hyt0
table { border-collapse: collapse; }
- BattleAxe0
check these out and try some of these techniques
- Gordy220
http://veerle.duoh.com/blog/comm…
This is a really good link that should help.