HighDots Forums  

CSS doesn't work after Library Item turned into SSI

Macromedia Dreamweaver Macromedia Dreamweaver Discussions (macromedia.dreamweaver)


Discuss CSS doesn't work after Library Item turned into SSI in the Macromedia Dreamweaver forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
E. Kwong
 
Posts: n/a

Default CSS doesn't work after Library Item turned into SSI - 08-05-2004 , 02:05 PM






We have some library items (*.lbi) which contain simple tables of links
mainly. Everything is working fine. Lately I've been experimenting with
SSI because I think maintaining them won't entail every single page in
the site being updated. However things didn't turn out as expected.

For example, one of them is a header to be contained in every web page.
When an asp is created with the origianl header.lbi as an include
file, there are two problems:
1) There's an extra blank line at the top of the browser (IE) preceding
the header content
2) CSS doesn't work anymore. We are using a different color for links,
which now appear the regular blue in the asp.

Renaming or re-creating header.lbi as header.htm has no effect at all.

Here are some codes in the test asp

........
<link href="css/company.css" type="text/css" rel="stylesheet" />
</head>

<body bottommargin="0" leftmargin="0" topmargin="0"
rightmargin="0" marginheight="0" marginwidth="0">
<!--#include virtual="Library/header.htm" -->
.......

So am I missing something here? Any help appreciated.

Thanks,





Reply With Quote
  #2  
Old   
Murray *TMM*
 
Posts: n/a

Default Re: CSS doesn't work after Library Item turned into SSI - 08-05-2004 , 02:11 PM






Make sure that ALL links in the include files are ROOT relative.

Can you show me the contents of header.htm?

--
Murray --- ICQ 71997575
Team Macromedia Volunteer for Dreamweaver
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com - Template Triage!
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
==================

"E. Kwong" <ekwong999 (AT) hotmail (DOT) com> wrote

Quote:
We have some library items (*.lbi) which contain simple tables of links
mainly. Everything is working fine. Lately I've been experimenting with
SSI because I think maintaining them won't entail every single page in
the site being updated. However things didn't turn out as expected.

For example, one of them is a header to be contained in every web page.
When an asp is created with the origianl header.lbi as an include
file, there are two problems:
1) There's an extra blank line at the top of the browser (IE) preceding
the header content
2) CSS doesn't work anymore. We are using a different color for links,
which now appear the regular blue in the asp.

Renaming or re-creating header.lbi as header.htm has no effect at all.

Here are some codes in the test asp

.......
link href="css/company.css" type="text/css" rel="stylesheet" /
/head

body bottommargin="0" leftmargin="0" topmargin="0"
rightmargin="0" marginheight="0" marginwidth="0"
!--#include virtual="Library/header.htm" --
......

So am I missing something here? Any help appreciated.

Thanks,







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.