Re: Style sheets problems
by "Alexander Feninga" <gassinaumasis(at)hotmail.com>
|
Date: |
Fri, 24 Mar 2000 03:44:09 PST |
To: |
emma.duke-williams(at)port.ac.uk, hwg-techniques(at)hwg.org |
|
todo: View
Thread,
Original
|
|
>So the questions:
>What is the best way of formatting within a table cell; as >essentially
>the main body is one vast table cell.
>I would like to retain the main text indented in comparison to the
>headings.
Put the text in P's, DIV's or Hx's and add a style sheet for these elements,
NOT for the TD. This is the safest way (especially for Netscape). If you
want a margin for the whole content and an extra one for the paragraphs, put
a DIV with a margin inside the TD and put P's with a margin inside the DIV.
To define styles ONLY for the central TD (if you also have paragraphs
outside the central TD and want to style them differently), you might want
to do it like this:
.TD CLASS="content">
.DIV>
.H2>Header./H2>
.P>Text
etc.
./DIV>
./TD>
and in the style sheet, do:
td.content p {margins, font etc.}
Means: every p inside a td with class=content has these-and-these styles.
______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com
HWG hwg-techniques mailing list archives,
maintained by Webmasters @ IWA