A 'simple' example of what I'm asking about
would be a Google News page... no, not the search aspects of it,
but the
formatting of the page, and the placement of images and stories.
Wouldn't the formatting be better handled using CSS?
All you need to do is generate the vanilla page content with the
correct tags and let the style sheet handle the placement. A quick
example:
set h to theHeader & theBody & theFooter
set foo to writeFile(h, "AS_CSS.html")
on writeFile(fD, fN)
set t to path to desktop
set posixT to POSIX path of t
set f to open for access file ((t as string) & fN) with write
permission
write fD to f
close access f
end writeFile