[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: RE: [docbook-apps] Problems with formating tables via CSS
Well, that trick works for Opera and Mozilla, but not for IE. Still, the difference you're seeing is the difference between compliance mode and compatiblity/quirks mode. The website output is xhtml and the presense of the doctype puts newer browsers in compliance mode, so font-size inherits to table. The other output is just html, so newer browsers go into quirks/compatility mode and font-size isn't inherited by table. Lots of stuff written about it: http://gutfeldt.ch/matthias/articles/doctypeswitch.html What you do depends on what browsers you need to support etc. Have fun, David -----Original Message----- From: David Cramer Sent: Friday, June 06, 2003 2:08 PM To: Oliver Fischer; docbook-apps mailing list Subject: RE: [docbook-apps] Problems with formating tables via CSS Put this in your css to make tables inherit your font settings: /* Rule to fix quirks-mode inheritance behavior */ table, caption { font-size: inherit; font-weight: inherit; font-style: inherit; font-variant: inherit; } For the explanation: http://devedge.netscape.com/viewsource/2002/table-inherit/ Off topic, but I think setting font size absolutely is a bad idea. It's not nice for unfortunate souls who use IE and want to set their screen resolution to 1600x1200. David -----Original Message----- From: Oliver Fischer [mailto:plexus@snafu.de] Sent: Friday, June 06, 2003 12:44 PM To: docbook-apps mailing list Subject: [docbook-apps] Problems with formating tables via CSS Hello list, I have documents created with DocBook (+ XSL stylesheets) and Website. If I write "body { font-size: 12px; }" - the font size of tables doesn't change in documents created with DocBook. But the same statement works fine for websites created with WebSite. Does someone know this problem? MfG Oliver Fischer --------------------------------------------------------------------- To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org For additional commands, e-mail: docbook-apps-help@lists.oasis-open.org --------------------------------------------------------------------- To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org For additional commands, e-mail: docbook-apps-help@lists.oasis-open.org
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]