css for tables

  tomleady 14:20 29 Mar 04
Locked

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?

Tom

  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.

Tom

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

How to get Windows 10 for free | How to install Windows 10: There is still a way to avoid paying…

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

Alex Chinneck’s giant ice cube Christmas tree at Kings Cross

Apple rumours & predictions 2017: The iPhone 8, new iPads, and everything else you should expect fr7…