[WSG] playing with layouts, pt2
Dear colleagues, I have been (just) playing with layouts, based upon what we discussed recently, and just wanted to see if it was easy to have 2 layouts, based upon a) a proper standard and b) another for the likes of IE and others which don't support some CSS rules. I've been using the (now common) php approach to deliver with the correct mime type for xhtml1.1, but I've also added another condition: ?php if ($mime == application/xhtml+xml) { echolink href=\standard.css\ rel=\stylesheet\ type=\text/css\/link\n; } else { echolink href=\nonstandard.css\ rel=\stylesheet\ type=\text/css\\n; } ? In other words, if the browser is capable of showing xhtml properly, I'm assuming it will support 'display : table' and the like also. The two CSS files reflect this - the former is just 'standard', the 2nd option uses floats and faux columns. It seems to work - I've tested in IE6, IE7, Firefox and Opera. I don't have anything else readily available so I'm asking if you'll check this for me and scream if it falls apart in anything 'important'. You can see the file here: http://www.rhh.myzen.co.uk/gam/altgam/sbox/template.php I don't know where this is leading me, but it's educational and I'd be grateful for feedback. Thanks, -- Bob www.gwelanmor-internet.co.uk *** List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm Help: [EMAIL PROTECTED] ***
Re: [WSG] playing with layouts, pt2
Designer wrote: http://www.rhh.myzen.co.uk/gam/altgam/sbox/template.php My Safari 2.0.4 does support CSS tables, but it doesn't signal that it is capable of showing xhtml properly (which it is). Thus, it is served 4.01 Strict with float CSS. Georg -- http://www.gunlaug.no *** List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm Help: [EMAIL PROTECTED] ***
Re: [WSG] playing with layouts, pt2
Gunlaug Sørtun wrote: Designer wrote: http://www.rhh.myzen.co.uk/gam/altgam/sbox/template.php My Safari 2.0.4 does support CSS tables, but it doesn't signal that it is capable of showing xhtml properly (which it is). Thus, it is served 4.01 Strict with float CSS. Georg Thanks Georg. I don't understand that. If Safari is capable of handing the correct mime type, how can (why would) it serve 4.01 strict? -- Bob www.gwelanmor-internet.co.uk *** List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm Help: [EMAIL PROTECTED] ***
Re: [WSG] playing with layouts, pt2
Designer wrote: I don't understand that. If Safari is capable of handing the correct mime type, how can (why would) it serve 4.01 strict? Probably because Safari is cheating :-) I don't know much about Safari - only use it for basic testing, but the following turned up in my archives from a discussion I had on the subject a year or so ago. 1: Don't think Safari has a genuine xml-parser. Suspect Safari to use the same parser as for 'text/html'. 2: Don't think Safari responds with the right information in the accept headers. It prefers 'text/html', and says so. Others must know more about this than I do, so I'll leave it at that. Georg -- http://www.gunlaug.no *** List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm Help: [EMAIL PROTECTED] ***
Re: [WSG] playing with layouts, pt2
On Feb 26, 2007, at 6:50 AM, Gunlaug Sørtun wrote: Designer wrote: I don't understand that. If Safari is capable of handing the correct mime type, how can (why would) it serve 4.01 strict? Probably because Safari is cheating :-) Not really. Safari's Accept Headers: Accept: */* translated: 'I prefer text/html' The latest Webkit builds report this: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/ plain;q=0.8, 1: Don't think Safari has a genuine xml-parser. Suspect Safari to use the same parser as for 'text/html'. Don't think so. But just as with other browsers, the xml-parser is much weaker and prone to bugs compared to the html parser. Note also: Safari only knows about the five required named entities. If you use other named entities, Safari will report an error. (Gecko and Opera know internally about about most named entities). Use numerical entities instead. Philippe --- Philippe Wittenbergh http://emps.l-c-n.com *** List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm Help: [EMAIL PROTECTED] ***