HighDots Forums  

Can Library Items have style?

Macromedia Dreamweaver Macromedia Dreamweaver Discussions (macromedia.dreamweaver)


Discuss Can Library Items have style? in the Macromedia Dreamweaver forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
dzash2000
 
Posts: n/a

Default Can Library Items have style? - 07-14-2004 , 10:31 PM






Hi - I KNOW this can't be right but when I bring a library item into a page or
template, it is no longer styled...like it never even heard of my style sheet.
What's the sense of it?

Here's the thing. I'm new to Macromedia products. Formerly used GoLive which
has a feature called Components. You build a nav bar or something and save it
as a Component. Then you reuse it...insert it anywhere but you can't change it
anywhere and it's alway linked to the stylesheet...it If you change the
original Component - the changes ripple thru. What feature of DW is similar?

TIA any advice...
JL


Reply With Quote
  #2  
Old   
Al Sparber- PVII
 
Posts: n/a

Default Re: Can Library Items have style? - 07-14-2004 , 10:46 PM






dzash2000 wrote:
Quote:
Hi - I KNOW this can't be right but when I bring a library item into
a page or template, it is no longer styled...like it never even heard
of my style sheet. What's the sense of it?

Here's the thing. I'm new to Macromedia products. Formerly used
GoLive which has a feature called Components. You build a nav bar or
something and save it as a Component. Then you reuse it...insert it
anywhere but you can't change it anywhere and it's alway linked to
the stylesheet...it If you change the original Component - the
changes ripple thru. What feature of DW is similar?
A library item must consist only of markup - what occurs normally
between the opening and closing body tags. When that library item is
inserted in a page it picks up the appropriate styles based upon where
it is in the page. If your style sheet is properly set up and written
then there is no problem. If you are a CSS beginner your style sheet may
not be logically written and hence the library item may be unstyled.

In your style sheet:
body {
background-color: #fff;
font-family: Arial, Helvetica, sans-serif;
font-size: 100%;
margin: 0;
padding: 0;
}
p {color: red;}

If your library item is in a paragraph then it s text will be red.

Get the idea?

--
Al Sparber - PVII
http://www.projectseven.com
DW Extensions - Menu Systems - Tutorials - CSS FastPacks
---------------------------------------------------------
Webdev Newsgroup: news://forums.projectseven.com/pviiwebdev/
CSS Newsgroup: news://forums.projectseven.com/css/
RSS/XML Feeds: http://www.projectseven.com/xml/






Reply With Quote
  #3  
Old   
dzash2000
 
Posts: n/a

Default Re: Can Library Items have style? - 07-15-2004 , 02:27 PM



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


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.