CSS

Forum: ProgrammersTotal Replies: 6
Author Content
J_Maxwell

Sep 08, 2004
12:15 PM
Hello!

I've recently been learning CSS. Couple of questions. First, IE has a really cool function that creates a gradient (filter:progid:DXImageTransform.Microsoft.Gradient()). I was wondering, is there a function that works in more browsers than IE? I really don't mind, at all, having my users only use IE for administrating the shopping cart, but it would be nice to be slightly more friendly. Also, how hard would it be to set up PHP so that it parses out CSS files? I think that it would be really neat to have PHP control what the browser can see (not that it's a really big deal if someone browses to my admin.css file, but it would be nice to have a way to block them from seeing it). I know that you can do that in Windows Server (IIS 5 and 6), but didn't know if that would be possible in linux.

Thanks for the help,

Joseph
dave

Sep 08, 2004
4:31 PM
The DXImageTransform.Microsoft.Gradient is a non-standards-compliant hack that doesn't work in anything other than IE. It'd be like trying to get XUL (Mozilla technology) to work in IE; basically impossible.

Quoted:
how hard would it be to set up PHP so that it parses out CSS files?


Serving different CSS to different browsers is easy in PHP. When you're generating the CSS from within PHP, just do a check on $_SERVER[HTTP_USER_AGENT] to find out whether this is IE, Opera, Gecko or other.

You can use .php files to serve CSS . Just do your link rel pointing to a php file.

dave
coderfrommaine

Sep 08, 2004
5:07 PM
Here's something about the gradient:

[HYPERLINK@lists.evolt.org]

And I don't quite understand you're second question. Could you explain it more?

Alex
J_Maxwell

Sep 08, 2004
6:37 PM
Thanks for your help!

Alex, thanks for that link. Do either of you know of a cross browser compliant CSS gradient? Microsoft really was smart to implement this into IE. They actually use this function on their main page - that's how I found out about it.

Joseph
coderfrommaine

Sep 08, 2004
7:30 PM
Serving different CSS to different browsers is easy in PHP.

(dave- I love that quote feature - AWSOME - How do you use it? And I just noticed the spell correction in posting, even more cool)

Although it is easy, I would highly discourage you from doing so. There really aren't any CSS bugs that are that big. And serving different versions of content is what you're trying to get away from in CSS & web standards.

Just my 2 cents,

Alex
J_Maxwell

Sep 08, 2004
9:19 PM
Alex,

Thanks for your reply. I guess I didn't phrase my post properly. I meant to keep people form my administration CSS file, not for cross-browser compatibility.

Say, I can't find the quote feature! Is that something that I'm missing?

Thanks,

Joseph
dave

Sep 09, 2004
8:06 AM
New feature. :) Use [ quote ] text here [ /quote ]

(remove the spaces from inside the bracketed text)

You can try it in the preview without actually sending the post.

dave

Posting in this forum is limited to members of the group: SITEADMINS, SUBSCRIBERS, MEMBERS.]

the Open Forums!

  Login
If you don't have an account yet, visit the registration page to sign up.

If you already have an account, you may login here:

Username: Password:

  Welcome to the Open Forums!!
Welcome to the Open Forums!!

  Hosted By...

This website is hosted by:

 -
PreparingSons
 - Titus2.com


[ Copyright © the Open Forums! | All times are recorded in ET ]

[ Contact Us ]

Login

Powered by Scif 5.3 build 285 by StandardOut, Inc.