equiv of border=1 in table

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View

Hi All

Wondered if you could let me know if I've missed something when setting up a

If I use the following:


All 4 sides of all of 4 table cells have a border 1 pixel in depth -

If I change this to:

<TABLE WIDTH=500 STYLE="border: 1px dashed black">

I only get a border on the outer 'wall' of the table - no borders on the

Due to the project I'm working on, I'm dynamically creating rows and cols in
DOM, I'd really like to just specify that all of the cols/rows have a border
in one go like the old table method rather than having to define the border
style for each cell.

I can't use the old table method of BORDER=1 because I need the dashed style
rather than a solid border.  Any ideas on how I can do this?


Re: equiv of border=1 in table

Fleeing from the madness of the Posted via Supernews,  =

http://www.supernews.com jungle
and said:

Quoted text here. Click to load it

How do you do?

Quoted text here. Click to load it

Quoted text here. Click to load it

yep - all sorts of things I suspect, but without a URL, I'd need a cryst=
al  =

ball and mine is [1]...
o on holiday in Australia
o still at the cleaners
o sulking

Quoted text here. Click to load it

well yeah - your inline style is only set on the table element.

Quoted text here. Click to load it

in your head [2] ...

<style type=3D"text/css">
   th, td {border: 1px dashed black}

[1] choose one or more as appropriate
[2] better in an external file

-- =

William Tasso


Site Timeline