css for tables

  tomleady 14:20 29 Mar 04

Hi, i'm having a bit of trouble using css on tables.

go to:click here

as you can see, the main border is a dotted line.

Ideally i would have each cell the same as the main border (not neccesarily dotted, but whatver border), do i have to add in the code for each td> tag? ( td class="table">)

is there anyway of avoiding this and setting it all in css so that every cell is the same?

Cheers, Tom

  tomleady 14:59 29 Mar 04

i'll try explaining a bit better.

I use Dreamweaver MX2004. now if i make i table and x amount of rows and columns, and choose border=1 and choose a border colour, every single line is that colour.

now if i do in css: border: 1px #000000 solid;
it just puts a border around the table itself.

see what i mean?


  Taran 16:11 29 Mar 04

Your style sheet is applying the border to the table in general when you reference it. You need to create elements that can be used for the table and/or its cells where you control what happens on the top, bottm, left and right hand border of whatever part of the table you want to control.

A couple of links to get you going:

click here

click here

  tomleady 16:15 29 Mar 04

cheers for those links Taran, i'll check them out and mess around.


This thread is now locked and can not be replied to.

Hands-on: Samsung Galaxy S8 review

1995-2015: How technology has changed the world in 20 years

Samsung's beautifully designed Galaxy S8 makes for better VR experiences too

47 iPhone camera tips to help you take better photos