[thelist] Styling JavaScript created paragraph
Julian Rickards
julian.rickards at gmail.com
Sun Oct 22 13:27:06 CDT 2006
Hi:
I am using Jeremy Keith's photo gallery script from his DOM Scripting book.
Part of the script creates a paragraph within which is inserted the large
image of the photo gallery. The paragraph is assigned the id attribute with
description as the attribute value (id="description"). In my CSS stylesheet,
I created a rule using text-align: center but it didn't center the large
photo (which is narrow enough to be centered). I tried modifying the
setAttribute method (the one that assigns the description id) by changing it
to setAttribute("style","text-align: center;") and even
setAttribute("align","center") but nothing worked.
Maybe I screwed up something else in the process but if someone could tell
me whether JS created paragraphs can be styled, that would get me started in
the right direction.
Jules
--
Website: http://jrickards.ca
Blog: http://pen-and-ink.ca
More information about the thelist
mailing list