@import stylesheet?

  • Thread starter Thread starter Dan E
  • Start date Start date
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
 
No trick. It just must be the first thing in the embedded stylesheet.
 
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.
 
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
 
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
 

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

Back
Top