Programming Tools
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsProgrammingProgramming Tools

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old February 16th, 2003, 10:01 PM
Vantera Vantera is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Sep 2002
Location: South Coast of NSW, Australia
Posts: 108 Vantera User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 7
Send a message via ICQ to Vantera
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

Reply With Quote
  #2  
Old April 17th, 2003, 03:06 PM
davaddavad davaddavad is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Apr 2003
Location: top of the mountain mount pocono pa
Posts: 1 davaddavad User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
support file

Hi I tried downloaded the support file but I got a lot of unintelligable code. I was wondering what it contained? Dave

Reply With Quote
  #3  
Old May 19th, 2003, 03:09 PM
ddatish ddatish is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: May 2003
Location: sf, ca
Posts: 1 ddatish User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
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.

Reply With Quote
  #4  
Old June 22nd, 2003, 02:29 PM
StuRReaL StuRReaL is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Feb 2003
Posts: 3 StuRReaL User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
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

Reply With Quote
  #5  
Old April 13th, 2004, 08:51 PM
phatattack phatattack is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Apr 2004
Posts: 1 phatattack User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
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

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingProgramming Tools > Article Discussion: PHP Browser Detection and Appropriate CSS Generation


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway
Stay green...Green IT