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
| | | |