Re: Can Library Items have style?

message from dzash2000 on 15 Jul 2004
Al - Thanks.
Please forgive my thinckness but when you say "A library item must consist
only of markup"...I'm not sure what you mean. In your example then (which was
perfectly bare bones), are the <p> and </p> tags INSIDE the library item or
does the library item consists of only those tags? I tried it both ways and
can't make use of either result.

Does it matter that I'm working on Mac OSX? Does it matter that I'm putting
library items into editable regions of pages based on templates.

Maybe I'm trying to use a Library Item for a purpose it's not intended for. I
want to construct (for example) tables with styled text and images in each
cell. I'll use this table of goods in a number of pages. The pages have all
different content around this table. When I change the original table of goods
- the changes cascade to every instance of it. Is that what a Lib Item is for?

TIA your input.
JL
 
Murray *TMM* replied to dzash2000 on 15 Jul 2004
Not Al, but here are your answers -

What he really means is that a Library item must not contain <html>, <head>,
or <body> tags. It also must not contain CSS style definitions. And it
shouldn't contain javascript function definitions which are more
appropriately put in the head of the page.

No.

It could be. But then answer this - when you make a change to that element
that you are reusing, do you want all pages containing it to reflect that
change? And, do you NOT want to be able to individually edit the contents
of that element on any given page containing that element? If the answer to
either of those is *YES* then a Library item is one way to achieve this
result (a server-side include would be the other). If the answer to both of
them is *NO* then I would create a snippet containing your HTML code and
just insert the snippet on your pages.
 

Archived message: Re: Can Library Items have style? (Macromedia Dreamweaver Web Design)