The @import and the @page rules

B

blackadder63

I'm finding, utilising 'Frontpage 2002' as my editor, using 'web preview' and
'print preview' I cannot get the '@import' for htm and the '@page' for .css
to function.
Kevin
 
M

Murray

Show me how you are trying to use them, please. Your description of @import
for htm is a bit confusing.
 
B

blackadder63

Hello Murry, thanks for your interest.
for the @import..
<style type="text/css">
@import "other.css" print;
</style>

and the @page which was part of a .ccs file
@page :left{size:8in 10in; margin:1in 1in .5in .5in; marks:crop cross;}
@page :right{size:8in 10in; margin:1in .5in .5in 1in; marks crop cross;}
@page toc{size:8in 10in; margin:3in .5in .5in 1in; marks:none;}

Kevin
 
M

Murray

Try this -

<style type="text/css" media="print">
@import "other.css";
and the @page which was part of a .ccs file
@page :left{size:8in 10in; margin:1in 1in .5in .5in; marks:crop cross;}
@page :right{size:8in 10in; margin:1in .5in .5in 1in; marks crop cross;}
@page toc{size:8in 10in; margin:3in .5in .5in 1in; marks:none;}

These will not work reliably. The browser universe is not ready for it.
 
R

Ronx

Change
<style type="text/css">
@import "other.css" print;
</style>
to
<style type="text/css" media="print">
@import "other.css" ;
</style>

The first version is not well supported by some browsers. Neither version
is supported by IE5.0.

The size attribute in @page is not supported by many browsers. The size
attribute has been dropped from CSS 2.1
 
B

blackadder63

Thanks Murray, I'll give it a bash in a minute.

Murray said:
Try this -

<style type="text/css" media="print">
@import "other.css";


These will not work reliably. The browser universe is not ready for it.
 

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