PDA

View Full Version : Library Items / CSS


Jim_Shady
08-08-2005, 03:00 PM
Hey all....

#header {
float:none;
background-color:#FFFFFF;
margin: 15px 15px 15px 15px;
background-image:url(Images/IndexTitle.gif);
Background-repeat: no-repeat;
border-bottom: 1px solid black}
#Menu {
background-image:url(Library Items/Menu.lbi);
background-repeat:no-repeat;}
#Body {
font-size:16px;
font-style:normal;
font-family:Verdana, Arial, Helvetica, sans-serif;
margin: 15px 15px 15px 15px;}

The above doesn't work for the library item - any guesses please? How do I insert a library item using CSS?

Cheers - Shady.

kate
08-08-2005, 04:13 PM
Hya shady,

Not sure you can use CSS:

You cannot put any item into the file that doesn’t belong in the BODY element of an HTML page. This means it won’t work with cascading style sheets (CSS) or timelines.
It also poses problems for using JavaScript, since scripts are defined in the HEAD element, just like CSS and timelines are. However, you can still use JavaScript behaviors, subject to some restrictions.

Adding Library Items

To add a library item:

Place the insertion point in the Document window.
Choose Window > Library or click the Library button on the Launcher.
Drag an item from the Library palette to the Document window, or select an item and click Insert.
TO INSERT THE ITEM'S CONTENT WITHOUT CREATING AN INSTANCE OF THE ITEM IN THE DOCUMENT, PRESS CONTROL WHILE DRAGGING AN ITEM OUT OF THE LIBRARY PALETTE

:)

ranjan
08-08-2005, 04:17 PM
Use as a snippet

Jim_Shady
08-09-2005, 12:16 PM
'Snippet' Ranjan?

Shady.

ranjan
08-09-2005, 04:06 PM
'Snippet' Ranjan?

http://www.webthang.co.uk/tuts/tuts_dmx/snips/snips.asp ('http://www.webthang.co.uk/tuts/tuts_dmx/snips/snips.asp')

domedia
08-09-2005, 08:22 PM
'Snippet' Ranjan?
Google is your Friend
http://www.google.com/search?q=dreamweaver+snippet ('http://www.google.com/search?q=dreamweaver+snippet')

kate
08-09-2005, 08:34 PM
Hya domedia,

I thought you would know all the Dreamweaver... :P

Would'nt it be best to keep your members 'on site'...?

Strange....

:)