Re: [css-d] PHP and CSS
Sarah Atkinson wrote on 05/13/2005 10:25:55 AM: Out of curiosity can you use PHP with in a CSS. Like maybe have a list of background images located in a DB and PHP select and insert on into the CSS. and possibly even have the user define things like font size, font color, background color, and typeface. Sarah It's my understanding that this is not possible, unless the PHP is in your .php document, as well as the CSS that is going to be altered. Placing PHP code in a .css file does no good unless your server knows the parse .css files as PHP. If that's the case, then I don't see why it couldn't work in an external file, though I don't have the resources to test it right now. __ css-discuss [EMAIL PROTECTED] http://www.css-discuss.org/mailman/listinfo/css-d List wiki/FAQ -- http://css-discuss.incutio.com/ Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
Re: [css-d] different stylesheets for different resolutions
[EMAIL PROTECTED] wrote on 05/05/2005 02:44:26 PM: Hi I really need to be able to download a different image depending on the user's resolution. I used to detect the resolution using Javascript and then issue a customised style sheet. I'm worried about using javascript now, is there any other way I can do this? It's only the one image I need to change. Thanks! Lee As far as I know, you're going to have to use a client-side script of some sort to detect the user's current resolution, and act upon that. I know CSS can detect the media, but I believe it leaves the ends of the media's size to you. Someone please correct me if I'm wrong (and we'll both learn something! hehe) Martin __ css-discuss [EMAIL PROTECTED] http://www.css-discuss.org/mailman/listinfo/css-d List wiki/FAQ -- http://css-discuss.incutio.com/ Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
Re: [css-d] Question about padding and margins
[EMAIL PROTECTED] wrote on 05/04/2005 01:26:06 PM: Hi, There are times when you can get a desired result using either padding or margins. Is there any reason why one or the other is better? Linda Hobbet There are many instances where they APPEAR to be the same, yet if you check the spacing around the box's content, that is where the change occurs. If you have a border around a text element, for example, setting the padding creates space between the text and border, while margin creates space between the border and all objects outside the box. Google for the CSS Box Model and have a gander. Martin __ css-discuss [EMAIL PROTECTED] http://www.css-discuss.org/mailman/listinfo/css-d List wiki/FAQ -- http://css-discuss.incutio.com/ Supported by evolt.org -- http://www.evolt.org/help_support_evolt/