This is Interesting: Free Magazines for Graphics designers and webmasters
Home > Archive > Dreamweaver > August 2004 > CSS doesn't work after Library Item turned into SSI
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
CSS doesn't work after Library Item turned into SSI
|
|
| E. Kwong 2004-08-05, 7:15 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,
| |
| Murray *TMM* 2004-08-05, 7:15 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@hotmail.com> wrote in message
news:cetstl$8p5$1@forums.macromedia.com...
> 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,
>
>
>
>
| |
| E. Kwong 2004-08-05, 7:15 pm |
| 1) The header.htm contains a logo and several rollover images. The
links are working fine but the blank line problem persists.
Here are the first 10+ lines and the last 2 lines:
<!-- MAINHEADER INCLUDE -->
<table id="TblTopNav" cellspacing="0" cellpadding="0" width="98%"
align="center"
border="0">
<tr>
<td align="left" rowspan="2"><a href="http://www.mysite.com"><img
src="../image-global/logo/mySite_logo.gif" alt="My site" width="227"
height="40" border="0" /></a> </td>
<td align="right" height="15">
<table>
<!-- TOP NAVIGATION MENU -->
<tr>
<td valign="bottom" nowrap="nowrap" align="right"><a
onmouseover="MM_swapImage('Image00','','../image-global/top_nav/topnavover_00.gif',1)"
onmouseout="MM_swapImgRestore()"
href="../"><img
src="../image-global/topnav_00.gif" alt="My Home Page"
.....
</table>
<!--MAINHEADER INCLUDE END -->
2) As to the CSS problem, I've created a simple asp page (no SSI)
containing a single link to the cnn site in the body only. I've found
that if I remove the following 2 lines at the beginning of the code then
my link color from the CSS comes through:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
If I put those lines back then the regular blue appears. So does that
mean it's better not to check the "Make document XHTML compliant" box
when one create a new page in dreamweaver?
Thanks,
Murray *TMM* wrote:
> Make sure that ALL links in the include files are ROOT relative.
>
> Can you show me the contents of header.htm?
>
| |
| Murray *TMM* 2004-08-05, 7:15 pm |
| > If I put those lines back then the regular blue appears. So does that
> mean it's better not to check the "Make document XHTML compliant" box
> when one create a new page in dreamweaver?
If you don't have a need to make XHTML compliant code, then I certainly
would not.
--
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@hotmail.com> wrote in message
news:ceu12f$dfa$1@forums.macromedia.com...
> 1) The header.htm contains a logo and several rollover images. The
> links are working fine but the blank line problem persists.
>
> Here are the first 10+ lines and the last 2 lines:
>
> <!-- MAINHEADER INCLUDE -->
> <table id="TblTopNav" cellspacing="0" cellpadding="0" width="98%"
> align="center"
> border="0">
> <tr>
> <td align="left" rowspan="2"><a href="http://www.mysite.com"><img
> src="../image-global/logo/mySite_logo.gif" alt="My site" width="227"
> height="40" border="0" /></a> </td>
> <td align="right" height="15">
> <table>
> <!-- TOP NAVIGATION MENU -->
> <tr>
> <td valign="bottom" nowrap="nowrap" align="right"><a
>
>
onmouseover="MM_swapImage('Image00','','../image-global/top_nav/topnavover_0
0.gif',1)"
>
> onmouseout="MM_swapImgRestore()"
> href="../"><img
> src="../image-global/topnav_00.gif" alt="My Home Page"
>
> ....
> </table>
> <!--MAINHEADER INCLUDE END -->
>
> 2) As to the CSS problem, I've created a simple asp page (no SSI)
> containing a single link to the cnn site in the body only. I've found
> that if I remove the following 2 lines at the beginning of the code then
> my link color from the CSS comes through:
>
> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
> "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
> <html xmlns="http://www.w3.org/1999/xhtml">
>
> If I put those lines back then the regular blue appears. So does that
> mean it's better not to check the "Make document XHTML compliant" box
> when one create a new page in dreamweaver?
>
> Thanks,
>
>
>
>
> Murray *TMM* wrote:
>
>
|
|
|
| | Copyright 2003 - 2008 forum4designers.com Software forum Computer Hardware reviews |
|