TalkPHP
 
 
Account Login
Latest Articles
» The basic usage of PHPTAL, a XML/XHTML template library for PHP
» Vulnerable methods and the areas they are commonly trusted in.
» Simple way to protect a form from bot
» The Basics On: How Session Stealing Works
» How to keep your forms from double posting data
IRC Channel
IRC Speech Bubble Join the friendly bunch on IRC...
(#TalkPHP on Freenode)

...Also available via a web interface.

See this thread for information on the TalkPHP Free Hugs Initiative™. Subject to availability.
Associates
Associates
CSS Tutorials
Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old 12-11-2007, 02:04 AM   #21 (permalink)
bdm
The Acquainted
Good Samaritan 
 
Join Date: Nov 2007
Posts: 127
Thanks: 14
bdm is on a distinguished road
Default

Although I enjoy doing CSS. I have yet to complete a full layout using CSS. I tend to get a little frustrated by the lack of standards. Not only IE since it seems all browser all have quirks of their own.
bdm is offline  
Reply With Quote
Old 12-11-2007, 09:08 AM   #22 (permalink)
The Contributor
 
Join Date: Apr 2005
Location: Kent, UK
Posts: 54
Thanks: 0
Dr John is on a distinguished road
Default

Quote:
Originally Posted by Wildhoney View Post
Precisely. Although I look at W3Schools's statistics.
That's a technically orientated site for web designers and developers, and thus is not representative of the "outside world". Web developers are well known to use firefox more than normal users, as some of the add-ins enable us to play with the css live.

A better site to use is www.thecounter.com which aggregates data reports from thousands of sites.
__________________
www.kidneydialysis.org.uk
Dr John is offline  
Reply With Quote
Old 12-11-2007, 04:31 PM   #23 (permalink)
The Contributor
Upcoming Programmer 
 
Matt83's Avatar
 
Join Date: Oct 2007
Location: Argentina
Posts: 72
Thanks: 18
Matt83 is on a distinguished road
Default

IE6, IE7, FF (mac/pc), Safari(mac) and Opera.

This usually covers a 95%+ of the stats i get from my projects.
__________________
http://www.mattvarone.com
Matt83 is offline  
Reply With Quote
Old 12-11-2007, 06:58 PM   #24 (permalink)
The Contributor
RegEx Guru 
 
Join Date: Dec 2007
Location: Belgium
Posts: 60
Thanks: 6
Geert is on a distinguished road
Default

Want to make one point about these statistics talks. Statistics are only statistics.

Suppose your site gets 100.000 visits. It breaks in IE5. But only 1% of the visitors use that browser. Well, that are 1000 people. Not 'users', people. People like you and me, with real feelings, who may get frustrated.

Did you ever see 1000 people standing in a row? Quite a long row.

Don't get me wrong. I don't support IE5 neither. Just wanted to make you reflect on bars and charts.
__________________
Kohana - PHP5 framework
Geert is offline  
Reply With Quote
Old 12-14-2007, 12:36 PM   #25 (permalink)
The Contributor
 
Join Date: Oct 2007
Posts: 35
Thanks: 2
Sled is on a distinguished road
Default

I use this code to reset all tags in all browsers.
Code not written by me, just edited, I can't remember original source.
Code:
/* reset */
:link,:visited{text-decoration:none;}
ul,ol{list-style:none;}
h1,h2,h3,h4,h5,h6,pre,code{font-size:1em;}
ul,ol,li,dl,dt,dd,h1,h2,h3,h4,h5,h6,pre,form,body,html,p,blockquote,fieldset,input{margin:0;padding:0;}
a img,:link img,:visited img{border:none;}
address{font-style:normal;}
This makes it so much easier to work!
Sled is offline  
Reply With Quote
Old 12-15-2007, 04:38 AM   #26 (permalink)
The Wanderer
 
vujsa's Avatar
 
Join Date: Dec 2007
Location: Indianapolis, Indiana, USA
Posts: 16
Thanks: 0
vujsa is on a distinguished road
Default

Quote:
Originally Posted by Dr John View Post
You can fix a LOT of cross browser problems by declaring a full doctype. And then setting body {padding:0; margin:0;} (I see little to be gained by setting everything to 0, just more declarations you have to add to set things.)

Many older pages have no doctype of just half of one. Half a doctype can kick IE into quirks mode.

Use either of these (preferably strict)

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">

(There is nothing to be gained using XHTML as IE doesn't understand XHTML at all, and converts it to html.)
I have to agree with Dr. John.

Declaring your DOCTYPE will definitely help.
While each browser has it's issues, most try to follow the rules of the standard you declare. If you don't declare a DOCTYPE, then the browser has to guess which standard to follow or use a default standard. The problem is that all of the browsers have different systems in place for guessing the proper standard or use different default standard. So IE might default to HTML1.1 and FireFox might try to guess the best standard. Since the standards are so different, the same code is parsed differently. By declaring the DOCTYPE, the browsers should do a much better job of following the same rules. You'll still have some cross-compatibility issues but not nearly as many as you will if you don't declare your standard.

Give it a try sometime. Create an HTML/CSS document and don't declare a DOCTYPE. The use the exact same code and create a second file with the DOCTYPE declared. In almost every browser you use, you'll see a difference in the two documents even thought the HTML and CSS is the same. Go ahead and create three or four documents with the same content but declare a different DOCTYPE for each.

I'm really not a fan of using standards since no two browsers will follow all of the rules exactly the same way. Nonetheless, not specifying a standard will result in many more cross-compatibility issues than by specifying.

vujsa
__________________
Need PHP Help? - Handy PHP
vujsa is offline  
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT. The time now is 02:49 AM.

 
     

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Inactive Reminders By Icora Web Design