|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
Article Discussion: PHP Browser Detection and Appropriate CSS Generation
PHP Browser Detection and Appropriate CSS Generation If you have any questions or comments about this article please post them here.
You can read the article here .
__________________
Kind Regards, John Rebbeck john@interspire.com ICQ# 74637937 |
|
#2
|
|||
|
|||
|
support file
Hi I tried downloaded the support file but I got a lot of unintelligable code. I was wondering what it contained? Dave |
|
#3
|
|||
|
|||
|
Hello,
I am experimenting with the browser detection code. I have two questions. Where should I put the require() call? Also, when I change the css specs in this code, nothing happens. I am trying to change font_smaller in the netscape condition, and using class menussel. <head> <?php require("phpBrowserDet.php"); function css_site() { //determine font for this platform if (browser_is_windows() && browser_is_ie()) { //ie needs smaller fonts than anyone else $font_size='x-small'; $font_smaller='xx-small'; $font_smallest='7pt'; } else if (browser_is_windows()) { //netscape or "other" on wintel $font_size='8pt'; $font_smaller='12pt'; $font_smallest='x-small'; ... </head> Here is the content of the page. <body> <a class="menussel">Text in the body.</a> </body> What am I doing wrong? Thanks! Last edited by ddatish : May 19th, 2003 at 03:24 PM. |
|
#4
|
|||
|
|||
|
just a quick question you were saying about font sizes being different across browser and OS platforms!! why don't u just use pixel sizes, as pixels are pixels on any platform
|
|
#5
|
|||
|
|||
|
I'm not sure if this works on all browsers/platforms but on internet explorer/Windows XP you can set a custom CSS stylesheet for all sites, so I don't know why developers would have such a problem if this is the case
![]() |
![]() |
| Viewing: Dev Articles Community Forums > Programming > Programming Tools > Article Discussion: PHP Browser Detection and Appropriate CSS Generation |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|