@import stylesheet?

D

Dan E

Is there any particular trick in using @import url(my.css) with FP2003? I
can find nothing in Help or docs or anywhere about using this technique from
FP.

TIA

Dan
 
D

Dan E

Murray - when I changed my HTML from link (the stylesheet) to "<!--import
url(st11.css)-->" it screwed up the appearance of the page - seemed to
change inheritance or precedence or something. I'm publishing the two
(identical) web pages in a test site here http://dellis.biz/sites/compare -
the linked page is index.html, which comes up when opening the site, and
index2.html uses import. Both pages use dynamic web templates, which
themselves use external style sheets. Index.html uses st11.dwt, which links
to st11.css, and index2.html uses st11_2.dwt, which @imports st11.css. I've
put a hyperlink to index_2 in the home page. Note that URLs for this site
are case-sensitive. If you or anyone would care to take a look and point
out the problem, I'd be REALLY grateful.... I'll copy this also as a fresh
thread - I'd like to get this cleared up....:)

TIA,

Dan
Murray said:
No trick. It just must be the first thing in the embedded stylesheet.
 
M

Murray

That's the wrong way. Try this.

<head>
.....
<style type="text/css">
<!--
@import url("whatever.css");
-->
</style>
</head>

--
Murray

Dan E said:
Murray - when I changed my HTML from link (the stylesheet) to "<!--import
url(st11.css)-->" it screwed up the appearance of the page - seemed to
change inheritance or precedence or something. I'm publishing the two
(identical) web pages in a test site here
http://dellis.biz/sites/compare - the linked page is index.html, which
comes up when opening the site, and index2.html uses import. Both pages
use dynamic web templates, which themselves use external style sheets.
Index.html uses st11.dwt, which links to st11.css, and index2.html uses
st11_2.dwt, which @imports st11.css. I've put a hyperlink to index_2 in
the home page. Note that URLs for this site are case-sensitive. If you
or anyone would care to take a look and point out the problem, I'd be
REALLY grateful.... I'll copy this also as a fresh thread - I'd like to
get this cleared up....:)

TIA,

Dan
 
D

Dan E

Many thanks, Murray - that fixed it - import looks just like link. Now to
figure out how to make those link bars behave :)

Thanks again,

Dan
 
Top