Using an external WYSIWYG editor is a GOOD way of getting the underlying HTML of things (like product descriptions, defined pages content, ezpages) sorted out...
... but bear in mind how you FORMAT this HTML, and, when you've created it, what you need to AVOID when you use CTRL+C / CTRL+V.
I do many of my descriptive text stuff in Dreamweaver, having set up a range of style ID's and Classes within DW. For example, I have a style ID called "productMainParagraph", another called "productSubParagraph".
(I make sure that the style names do not conflict with any used in standard ZC, then, I append the declarations for these styles into my stylesheet.css)
So, as I work in DW, I apply the styles to the content, so (for example), a product description's HTML could look like this:
HTML Code:
<div id="productMainParagraph">Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.<div>
<br /><br />
<div id="productSubParagraph">Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.<div>
Then in stylesheet.css I have:
PHP Code:
#productMainParagraph {
color:#000000;
font-family:verdana,arial,helvetica,sans-serif;
font-size:105%;
}
#productSubParagraph {
color:#F3F3F3;
font-family:verdana,arial,helvetica,sans-serif;
font-size:85%;
}
Then, when it comes to copying the HTML source code, I make sure to copy stuff (off DW) that exists only between the <body> and </body> tags... or more usually, only the <div> components I am working with.
You must NOT paste any <head> </head> stuff... the page will already inherit the ZC header stuff.
In this way, I make sure that my styles are not embedded in the description's html, but are rather sourced from the stylesheet.
Bookmarks