Assuming that all tables of the page contents should have borders, you
just have to make sure that the document is always rendered within a
well known DIV element. Like this you do not need to change the code
and just add a new CSS rule to your style-sheet:
/* all tables within the .contents should have a border */
.contents table { border: 1px solid black; }
Does that help?
Cheers,
Lukas
On Sat, Feb 14, 2009 at 4:37 AM, John Borden <jborden23(a)mac.com> wrote:
All,
Lately, I've been attempting to make PRTables have a borders around them.
If I create a CSS file for table with class 'hasborden' by adding the
following to the top of PRTable>>accept:
(aVisitor isKindOf: PRRenderer) ifTrue: [aVisitor renderer table
attributes addClass: 'hasborder'].
then PRTables are displayed with the CSS class of 'hasborder' and is
displayed correctly, and other tables do not have borders (exactly what I
want!). Is there a better way to this sort of thing, I have several similar
changes, and I want to limit the amount of really bad smalltalk.
Thanks,
John
_______________________________________________
SmallWiki, Magritte, Pier and Related Tools ...
https://www.iam.unibe.ch/mailman/listinfo/smallwiki
--
Lukas Renggli
http://www.lukas-renggli.ch