Loren wrote:
Phil,
It stuff you place in those fields is NOT within the head tags. However,
CSS style definitions do not HAVE to be within the head tag. The 'Text
at the top' fields will be the first stuff placed after the opening body
tag, so CSS placed here should affect the rest of the page just fine.
I
believe that the reason 'best practices' is normally to include CSS in
the head section is that then it is not subject to the hierarchical
(sp?) rendering of the information in the body tag, i.e. if you put a
style in a table, will some browsers not respect that style once the
table ends, etc. But I may be wrong on that. However, all modern
browsers that I have seen do seem to allow CSS in the body. Give it a shot.
My initial experiment shows that (Mozilla 1.6, Netscape 7) neither an
imported nor a linked stylesheet is recognized, although specifically
declared styles are. So, while I can style the <h1> element on the
shopping cart's 2nd page (the billing cgi), I can't get at the rest of
the <h3> elements or the rest of the text on the page. Looks kind of
cheesy, IMHO.
I am fairly certain that stylesheet references, whatever the variety,
must be contained with the <head> tags. I don't think there is any way
to style elements from anywhere else on a page, save for those that can
be individually addressed, i.e. <td style="whatever">, and naturally
there is no cascade of such declared styles.
For whatever reason, the second cart page (the one you get when you
click on "Checkout" from the first cart page) doesn't seem to want to
load a correctly referenced JPG image, either. I may have to copy the
image into the subdirectory where the cgi files are stored. The first
cart page loads the same image correctly.
Cheers (well, sort of...) --- Phil