RE: [WSG] Default browser stylesheet values
The Yahoo User Interface (Google YUI library) include style sheets for normalising styles over browsers. (So all margins/font sizes etc are consistent) They also offer a wealth of cross-browser JavaScript functions for animation and AJAX calls, well worth checking out. (file size is a bit big though, not much you can do about that though, they pack so much good stuff into them) Samuel www.seasonstravel.com.au | www.geminidevelopment.com.au -Original Message- From: listdad@webstandardsgroup.org [mailto:[EMAIL PROTECTED] On Behalf Of e-Bility Sandra Vassallo Sent: Tuesday, 1 August 2006 3:45 PM To: wsg@webstandardsgroup.org Subject: Re: [WSG] Default browser stylesheet values Hi Paul, I usually start with Tantek's 'debug scaffolding' to create a consistent starting point by ruling out the various browser defaults - not sure if this is what you had in mind but I find it a great approach. http://tantek.com/log/2004/09.html#d06t2354 Erik has also written about it in his archives 'Really Undoing html.css' at: http://meyerweb.com/eric/thoughts/2004/09/15/emreallyem-undoing-htmlcss/ Cheers, Sandra russ - maxdesign wrote: Here is the one recommended by the W3C http://www.w3.org/TR/REC-CSS2/sample.html One clumsy way I have used in the past to test individual browsers it to put two identical html files beside each other - one without any css and the other with css in the head. Then you can zero all margins, padding size etc for specific elements in this second html file and add your own css to try and match the unstyled version. Not ideal but it works :) Russ Hey all, Just wondering if anyone is aware of any web resources that detail the default style values given to various elements by browsers (specifically IE6)? For example, what are the default IE6 CSS values for body, h1-6, p, etc? I've already tried Googling this myself, but didn't come up with anything. Thanks in advance, Paul Hempsall Web Developer Lake Macquarie City Council Phone: (02) 4921-0713 Fax: (02) 4921-0566 Web: http://www.lakemac.com.au This information is intended for the addressee only. The use, copying or distribution of this message or any information it contains, by anyone other than the addressee is prohibited by the sender. Any views expressed in this communication are those of the individual sender, except where the sender specifically states them to be the views of Council. ** The discussion list for http://webstandardsgroup.org/ See http://webstandardsgroup.org/mail/guidelines.cfm for some hints on posting to the list getting help ** Thanks Russ --- Russ Weakley Max Design Phone: (02) 9410 2521 Mobile: 0403 433 980 Email: [EMAIL PROTECTED] Website: http://www.maxdesign.com.au/ News: http://www.maxdesign.com.au/feed/ Flickr: http://www.flickr.com/photos/russweakley/ Sams Teach Yourself CSS in 10 Minutes: http://www.maxdesign.com.au/book/ --- ** The discussion list for http://webstandardsgroup.org/ See http://webstandardsgroup.org/mail/guidelines.cfm for some hints on posting to the list getting help ** -- Sandra Vassallo e-Bility Inclusive IT Web Accessibility Usability Solutions t: 02 9810 2216 m: 0414 765 881 e: [EMAIL PROTECTED] Inclusive IT: www.inclusiveit.com.au e-Bility web: www.e-bility.com ** The discussion list for http://webstandardsgroup.org/ See http://webstandardsgroup.org/mail/guidelines.cfm for some hints on posting to the list getting help ** ** The discussion list for http://webstandardsgroup.org/ See http://webstandardsgroup.org/mail/guidelines.cfm for some hints on posting to the list getting help **
Re: [WSG] Default browser stylesheet values
Paul Hempsall wrote: Just wondering if anyone is aware of any web resources that detail the default style values given to various elements by browsers (specifically IE6)? For example, what are the default IE6 CSS values for body, h1-6, p, etc? Sandra, Samuel: I think you're misinterpreting Paul's question. I understand him to be asking what the defaults are for various browsers when *nothing* is specified by CSS. Not that I have an answer - does anyone know if browsers have a set of inbuilt CSS rules that they refer to in the absence of any overriding stylesheet file? Hmm - OK, answers own question - FF on my Mac, with a little digging (Firefox.app Show Package Contents Contents/MacOS/res/) coughs up a file called html.css - which *appears* to contain the defaults. There's a bunch of others, too: forms.css mathml.css platform-forms.css quirk.css ua.css viewsource.css Caveat: I can code web pages, but I can't build browsers. Edit at your own risk! N ___ Omnivision. Websight. http://www.omnivision.com.au/ ** The discussion list for http://webstandardsgroup.org/ See http://webstandardsgroup.org/mail/guidelines.cfm for some hints on posting to the list getting help **
Re: [WSG] Default browser stylesheet values
Paul Hempsall wrote: Hey all, Just wondering if anyone is aware of any web resources that detail the default style values given to various elements by browsers (specifically IE6)? You could download and install the IE Web Developer toolbar from Microsoft: http://www.microsoft.com/downloads/details.aspx?FamilyID=e59c3964-672d-4511-bb3e-2d5e1db91038displaylang=en Then load an unstyled document containing the elements you want to know the values for, select View DOM from the toolbar and, in the Current style pane, select the Show default style values checkbox. Then, in the document tree view, select the elements in turn to see what the style values are. HTH, Nick. -- Nick Fitzsimons http://www.nickfitz.co.uk/ ** The discussion list for http://webstandardsgroup.org/ See http://webstandardsgroup.org/mail/guidelines.cfm for some hints on posting to the list getting help **
Re: [WSG] Default browser stylesheet values
Hi Paul, I usually start with Tantek's 'debug scaffolding' to create a consistent starting point by ruling out the various browser defaults - not sure if this is what you had in mind but I find it a great approach. http://tantek.com/log/2004/09.html#d06t2354 Erik has also written about it in his archives 'Really Undoing html.css' at: http://meyerweb.com/eric/thoughts/2004/09/15/emreallyem-undoing-htmlcss/ Cheers, Sandra russ - maxdesign wrote: Here is the one recommended by the W3C http://www.w3.org/TR/REC-CSS2/sample.html One clumsy way I have used in the past to test individual browsers it to put two identical html files beside each other - one without any css and the other with css in the head. Then you can zero all margins, padding size etc for specific elements in this second html file and add your own css to try and match the unstyled version. Not ideal but it works :) Russ Hey all, Just wondering if anyone is aware of any web resources that detail the default style values given to various elements by browsers (specifically IE6)? For example, what are the default IE6 CSS values for body, h1-6, p, etc? I've already tried Googling this myself, but didn't come up with anything. Thanks in advance, Paul Hempsall Web Developer Lake Macquarie City Council Phone: (02) 4921-0713 Fax: (02) 4921-0566 Web: http://www.lakemac.com.au This information is intended for the addressee only. The use, copying or distribution of this message or any information it contains, by anyone other than the addressee is prohibited by the sender. Any views expressed in this communication are those of the individual sender, except where the sender specifically states them to be the views of Council. ** The discussion list for http://webstandardsgroup.org/ See http://webstandardsgroup.org/mail/guidelines.cfm for some hints on posting to the list getting help ** Thanks Russ --- Russ Weakley Max Design Phone: (02) 9410 2521 Mobile: 0403 433 980 Email: [EMAIL PROTECTED] Website: http://www.maxdesign.com.au/ News: http://www.maxdesign.com.au/feed/ Flickr: http://www.flickr.com/photos/russweakley/ Sams Teach Yourself CSS in 10 Minutes: http://www.maxdesign.com.au/book/ --- ** The discussion list for http://webstandardsgroup.org/ See http://webstandardsgroup.org/mail/guidelines.cfm for some hints on posting to the list getting help ** -- Sandra Vassallo e-Bility Inclusive IT Web Accessibility Usability Solutions t: 02 9810 2216 m: 0414 765 881 e: [EMAIL PROTECTED] Inclusive IT: www.inclusiveit.com.au e-Bility web: www.e-bility.com ** The discussion list for http://webstandardsgroup.org/ See http://webstandardsgroup.org/mail/guidelines.cfm for some hints on posting to the list getting help **