| fu@bar 2004-09-29, 11:16 pm |
| Hi,
I have a page which has SSI. Within the SSI, I have links to external
Style Sheets.
In Dreamweaver MX 6.0 - the preview in browser works fine, but is broken in
DMW MX 7.0.1.
Look at the code below to see the difference between two versions. With
version 7,
Firefox/IE6/Opera - no one can apply the CSS, whereas with version 6, all the
above
browsers have no problem interpreting CSS data.
The index.shtml looks like this :
--------------------------------------------------------------------------------
-
<head>
<title>My - Home</title>
<!--#include virtual="incl/common.incl" -->
</head>
<body>
<!--#include virtual="incl/header.incl" -->
......
</body>
--------------------------------------------------------------------------------
------
While previewing in Browser the code generated by v6.0 is thus :
--------------------------------------------------------------------------------
-------
<head>
<title>My - Home</title>
<MM:BeginLock translatorClass="MM_SSI" type="ssi_comment" orig="%3C!--#include
virtual=%22incl/common.incl%22 --%3E" fileRef="incl/common.incl"
depFiles="file:///D|/Web/user/incl/common.incl"><meta name="description"
content="My Home">
<link rel="stylesheet" title="Top Menubar"
href="css/menu_top.css" media="screen, print, projection, tv">
<!-- The following variant is for windows that aren't tall enough for
the fixed menu. Use the scrolling menu instead. -->
<link rel="alternate stylesheet" title="Left Fixed Menubar"
href="css/fixed.css" media="screen, print, projection, tv">
<link rel="alternate stylesheet" title="Left Floating Menubar"
href="css/float.css" media="screen">
<body>
<MM:BeginLock translatorClass="MM_SSI" type="ssi_comment" orig="%3C!--#include
virtual=%22incl/header.incl%22 --%3E" fileRef="incl/header.incl"
depFiles="file:///D|/Web/user/incl/header.incl">
<div class="banner_left"> <a href="http://www.somewhere.com"> <img
src="images/web/me.gif" width="120" height="130" border="0" alt="Logo">
</a> </div>
<div class="banner_right">
<object
type="application/x-shockwave-flash"
data="flash/header.swf"
width="600" height="120"
id="header_animation"
title=" Header">
<param name="movie" value="flash/header.swf">
</object>
</div>
--------------------------------------------ETC
---------------------------------------------------------
However version 7.0.1 totally messes it up
--------------------------------------------------------------------------------
-------------------------
<head>
<title>My - Home</title>
<!--
/* CSS Document */
/* Use for Hidden text */
.hide {
display: none;}
/*----------------------------------------------------------------
Set body text and background color */
body {
font-family: verdana, arial, helvetica, sans-serif;
font-size: 80%;
text-align: justify;
background-color: #fff9cc;
color: purple;
/* background: #FCF8D6 url("../web/images/bgPat.gif");
background-repeat: repeat; */}
/*----------------------------------------------------------------
SOME MORE CSS CODE FOLLOWS .....
-->
</head>
<body>
<MM:BeginLock translatorClass="MM_SSI" type="ssi_comment" orig="%3C!--#include
virtual=%22incl/header.incl%22 --%3E" fileRef="incl/header.incl"
depFiles="file:///D|/Web/user/incl/header.incl"><div class="banner_left">
<a href="http://www.somewhere.com">
<img src="images/web/me.gif" width="120" height="130" border="0" alt="Logo">
</a>
</div>
<div class="banner_right">
<object
type="application/x-shockwave-flash"
data="flash/header.swf"
width="600" height="120"
id="header_animation"
title="Header">
<param name="movie" value="flash/header.swf">
</object>
</div>
|