Welcome to WebmasterWorld Guest from 18.104.22.168
Forum Moderators: ocean10000
Moderator This Forum
joined:Mar 15, 2002
#:1193773 8:05 am on Nov 6, 2003 (utc -8)
Well, you can't use SSI inside a CSS file. So, link to the ASP/PHP file, and make the script output your CSS ;)
Just make sure it outputs it with the correct mime type in the headers: text/css
Or, you can change your server settings, and make all CSS files parsed by the ASP/PHP engine.
taken from [webmasterworld.com...]
I have an index page, index.htm, that is running on IIS 5.1. I found an asp search code that when the search box is used on the site, it pulls the results from my catalog/directory, into a file called search.asp. The problem is, the whole site uses a css sheet, and I'd like to have the search results be displayed consistently with the site. But everytime I add the reference to the style.css, my navigational <divs> expand all the way to the right, probably about 3000px, with the search results being displayed at about 1500px to the right.
Is there a way I can call that css page from my asp page and have it properly parsed or displayed?
How would i change my server settings to make css files parsed by the ASP engine?
I'm not sure I fully understand what you're trying to do, but can you not have a separate style sheet for the search.asp page?
Link in both .css pages, with the "master" site stylesheet first, followed by your search one.
You can then use the master CSS to set your basic styles, like fonts, etc on the search page but use the second stylesheet to overwrite any layout issues you may be having.
If anyone ever looks at the code, their gonna be like #*$!? heeh.