Style sheet conflict ??

  • Thread starter Thread starter jnm
  • Start date Start date
J

jnm

I am working with FrontPage 2000.
When I use the following style sheet
<link href="print.css" rel="stylesheet" type="text/css" media="print"/>
to control the printing of a page and I place it directly after the normal
style sheet
<link href="main.css" rel="stylesheet" type="text/css" />
it works fine in the browser and when printing.

BUT when I edit a page in Frontpage, the style is controlled by the
print.css and not the main.css. Why is that so ??????
Regards
Jorgen
 
Looks like FP doesn't support the media attribute on the link.

When I create a page like this -

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>New Page 9</title>
<style type="text/css" media="screen">
<!--
body { background-color: #00FF00 }
-->
</style>
<style type="text/css" media="print">
<!--
body { background-color: #FF0000 }
-->
</style>
</head>

FP2003's design view gives me a RED background, but its PREVIEW gives me a
GREEN background.

How does the preview work for you?
 
FrontPage 2000 is an older version and I don't have it installed but you
could try this.

<link rel="stylesheet" type="text/css" href="print.css" media="print" />
<style type="text/css">
<!--
@import "your.css";
-->
</style>

Replace the your.css and print.css with yours names.

Can't say for sure that this will work in FP 2000 but it is worth a try.

John Malone
=======================
|I am working with FrontPage 2000.
| When I use the following style sheet
| <link href="print.css" rel="stylesheet" type="text/css" media="print"/>
| to control the printing of a page and I place it directly after the normal
| style sheet
| <link href="main.css" rel="stylesheet" type="text/css" />
| it works fine in the browser and when printing.
|
| BUT when I edit a page in Frontpage, the style is controlled by the
| print.css and not the main.css. Why is that so ??????
| Regards
| Jorgen
|
|
 
Early Bird... Yum yum

Yours

John Malone
| Looks like FP doesn't support the media attribute on the link.
|
| When I create a page like this -
|
| <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
| "http://www.w3.org/TR/html4/strict.dtd">
| <html>
|
| <head>
| <meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
| <title>New Page 9</title>
| <style type="text/css" media="screen">
| <!--
| body { background-color: #00FF00 }
| -->
| </style>
| <style type="text/css" media="print">
| <!--
| body { background-color: #FF0000 }
| -->
| </style>
| </head>
|
| FP2003's design view gives me a RED background, but its PREVIEW gives me a
| GREEN background.
|
| How does the preview work for you?
|
| --
| Murray
| --------------
| MVP FrontPage
|
|
| | >I am working with FrontPage 2000.
| > When I use the following style sheet
| > <link href="print.css" rel="stylesheet" type="text/css" media="print"/>
| > to control the printing of a page and I place it directly after the
normal
| > style sheet
| > <link href="main.css" rel="stylesheet" type="text/css" />
| > it works fine in the browser and when printing.
| >
| > BUT when I edit a page in Frontpage, the style is controlled by the
| > print.css and not the main.css. Why is that so ??????
| > Regards
| > Jorgen
| >
| >
|
|
 
Back
Top