homepage Welcome to WebmasterWorld Guest from 54.205.254.108
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Pubcon Platinum Sponsor 2014
Home / Forums Index / Microsoft / Microsoft IIS Web Server and ASP.NET
Forum Library, Charter, Moderators: ocean10000

Microsoft IIS Web Server and ASP.NET Forum

    
search.asp with a style.css possible?
Been poking around here awhile... closest i found was
youfoundjake




msg:3405301
 2:46 pm on Jul 26, 2007 (gmt 0)

DrDoc
Moderator This Forum

report msg
joined:Mar 15, 2002
posts:6106
#: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?

Thanks, jake

 

Joff




msg:3405702
 10:16 pm on Jul 26, 2007 (gmt 0)

Hi Jake,

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.

youfoundjake




msg:3410772
 6:18 pm on Aug 1, 2007 (gmt 0)

Well, I got my display issue kind of worked out, had to do an ugly hack with a table and dropping the nav div and content div into 2 rows, and then add a spacer below the nav div for everthing to display properly.

If anyone ever looks at the code, their gonna be like #*$!? heeh.

Thanks

Joff




msg:3410847
 7:21 pm on Aug 1, 2007 (gmt 0)

Hehe, not sure I helped but no problem - any time :P

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Microsoft / Microsoft IIS Web Server and ASP.NET
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved