Internal table boundaries via style=""

Internal table boundaries via style=""

am 26.06.2007 15:20:18 von aaronfude

Hi,

Is there a way to specify the style of internal boundaries of a table
inside the

tag, e.g.



Thanks!

Aaron

Re: Internal table boundaries via style=""

am 26.06.2007 15:24:55 von lws4art

aaronfude@gmail.com wrote:
> Hi,
>
> Is there a way to specify the style of internal boundaries of a table
> inside the

tag, e.g.
>
>


http://www.w3.org/TR/CSS21/tables.html#borders


--
Take care,

Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com

Re: Internal table boundaries via style=""

am 26.06.2007 15:30:39 von dorward

On Jun 26, 2:20 pm, aaronf...@gmail.com wrote:
> Is there a way to specify the style of internal boundaries of a table
> inside the

tag, e.g.
>
>


No. Those borders are around the cells, not the table. You have to
style the cells.

Use a real stylesheet.

--
David Dorward
http://dorward.me.uk/
http://blog.dorward.me.uk/

Re: Internal table boundaries via style=""

am 26.06.2007 16:15:29 von aaronfude

Hi, thanks for the responses.

I'm not able to use a real stylesheet. I'm working in a development
environment where I'm only able to supply the table. Basically, I'm
overriding a Class.toHTML() method and am not able to control anything
else. So now way to do it other than slapping a style on every td?

Thanks!

Aaron

Re: Internal table boundaries via style=""

am 26.06.2007 16:25:57 von Adrienne Boswell

Gazing into my crystal ball I observed aaronfude@gmail.com writing in
news:1182867329.083945.51610@n60g2000hse.googlegroups.com:

> Hi, thanks for the responses.
>
> I'm not able to use a real stylesheet. I'm working in a development
> environment where I'm only able to supply the table. Basically, I'm
> overriding a Class.toHTML() method and am not able to control anything
> else. So now way to do it other than slapping a style on every td?
>
> Thanks!
>
> Aaron
>
>

1. Please quote what you are responding to.
2. Use an external stylesheet. Get together with the person who is
responsible for the stylesheet and say you need a change to the
stylesheet. Say you have

, then you could have the
properties of that table addressed in the external stylesheet.


--
Adrienne Boswell at Home
Arbpen Web Site Design Services
http://www.cavalcade-of-coding.info
Please respond to the group so others can share

Re: Internal table boundaries via style=""

am 26.06.2007 17:44:15 von Toby A Inkster

aaronfude wrote:

> So now way to do it other than slapping a style on every td?

You could use Javascript.



Though I'm guessing if you're unable to add a stylesheet, you're probably
also unable to add a script.

If that fails, choose a better development environment.

--
Toby A Inkster BSc (Hons) ARCS
[Geek of HTML/SQL/Perl/PHP/Python/Apache/Linux]
[OS: Linux 2.6.12-12mdksmp, up 5 days, 19:19.]

A New Look for TobyInkster.co.uk
http://tobyinkster.co.uk/blog/2007/06/22/new-look/

Re: Internal table boundaries via style=""

am 26.06.2007 21:51:07 von Andy Dingley

On Tue, 26 Jun 2007 07:15:29 -0700, aaronfude@gmail.com wrote:

>I'm not able to use a real stylesheet.

1. Get a stylesheet. This is how to do it properly.

2. Stick a stylesheet into the of the document. Not valid, but
it usually works.

3. Repeat the style attribute on each

cell. If you're
auto-generating things and you can live with the excess volume, then
this works fine and it's valid. If the properties of interest are
inheritable from the table (colours etc.) then set them on the ,
not repeatedly on the

Re: Internal table boundaries via style=""

am 27.06.2007 16:25:24 von aaronfude

If these are the solutions, then what's the point of "border-style-
internal"?

On Jun 26, 3:51 pm, Andy Dingley wrote:
> On Tue, 26 Jun 2007 07:15:29 -0700, aaronf...@gmail.com wrote:
> >I'm not able to use a real stylesheet.
>
> 1. Get a stylesheet. This is how to do it properly.
>
> 2. Stick a stylesheet into the of the document. Not valid, but
> it usually works.
>
> 3. Repeat the style attribute on each

cell. If you're
> auto-generating things and you can live with the excess volume, then
> this works fine and it's valid. If the properties of interest are
> inheritable from the table (colours etc.) then set them on the ,
> not repeatedly on the

Re: Internal table boundaries via style=""

am 27.06.2007 17:45:56 von dorward

On Jun 27, 3:25 pm, aaronf...@gmail.com wrote:

Don't top post

> If these are the solutions, then what's the point of "border-style-
> internal"?

Umm. There is no point to it. It was something considered for CSS 1
which did NOT make it into the final recommendation (presumably
because the realized that descendant selectors (then known as
contextual selectors) gave far more flexibility and removed the need
for it.

--
David Dorward
http://dorward.me.uk/
http://blog.dorward.me.uk/

Re: Internal table boundaries via style=""

am 27.06.2007 18:18:14 von aaronfude

On Jun 27, 11:45 am, David Dorward wrote:
> On Jun 27, 3:25 pm, aaronf...@gmail.com wrote:
>
> Don't top post
>
> > If these are the solutions, then what's the point of "border-style-
> > internal"?
>
> Umm. There is no point to it. It was something considered for CSS 1
> which did NOT make it into the final recommendation (presumably
> because the realized that descendant selectors (then known as
> contextual selectors) gave far more flexibility and removed the need
> for it.
>
> --
> David Dorwardhttp://dorward.me.uk/http://blog.dorward.me.uk/

Great, thank you.

Re: Internal table boundaries via style=""

am 29.06.2007 01:00:32 von aaronfude

On Jun 27, 12:18 pm, aaronf...@gmail.com wrote:
> On Jun 27, 11:45 am, David Dorward wrote:
>
> > On Jun 27, 3:25 pm, aaronf...@gmail.com wrote:
>
> > Don't top post
>
> > > If these are the solutions, then what's the point of "border-style-
> > > internal"?
>
> > Umm. There is no point to it. It was something considered for CSS 1
> > which did NOT make it into the final recommendation (presumably
> > because the realized that descendant selectors (then known as
> > contextual selectors) gave far more flexibility and removed the need
> > for it.
>
> > --
> > David Dorwardhttp://dorward.me.uk/http://blog.dorward.me.uk/
>
> Great, thank you.

Actually... Suppose I do use a real style sheet. It still means that I
have to assign a class to every cell in the table, correct? What I'm
looking for a signle place to set the behavior of internal borders. In
a way that seems impossible. I can I assign a style to a class - but I
still have to assign the class to each cell. Please correct me if I'm
wrong.

Re: Internal table boundaries via style=""

am 29.06.2007 01:56:31 von dorayme

In article
<1183071632.051220.105200@k79g2000hse.googlegroups.com>,
aaronfude@gmail.com wrote:

> Actually... Suppose I do use a real style sheet. It still means that I
> have to assign a class to every cell in the table, correct? What I'm
> looking for a signle place to set the behavior of internal borders. In
> a way that seems impossible. I can I assign a style to a class - but I
> still have to assign the class to each cell. Please correct me if I'm
> wrong.

No, you don't have to assign a class to each table cell to style
them. You can assign a style to td and all the tds will be so
styled.

td {border: 1px solid #000;}

But let us suppose you have a complex table in which there are
many rows with very many cells in each row. But only some of the
rows are required to be styled a certain way. In this case, it is
effective to class the rows concerned and simply:

tr.results td {border: 1px solid #000;}

All the tds in rows of this class will have this style.

The saving is considerable because there are very many more tds
than trs.

Same goes generally:

div#wrapper div {...}

can target an awful lot of divs in one fell swoop without having
to class each div that requires the desired treatment.

--
dorayme