Style sheet conflict ??

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
 
M

Murray

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?
 
J

John Malone

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
|
|
 
J

John Malone

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
| >
| >
|
|
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top