Re: [WSG] My site is broken in Opera
Alan Trick wrote: Hi, I finished a nice update for my website, added a browser detection script on my css because IE doensn't like web standards. Now my site works in all the browsers I have exept for Opera, and I don't know why, can anyone help me with this? the url is http://jellybean.uni.cc n.b. it uses style.css in firefox/mozilla, and styleie.css all other browsers All the pages on the site are valid xhtml+xml and both css files are valid. ** The discussion list for http://webstandardsgroup.org/ See http://webstandardsgroup.org/mail/guidelines.cfm for some hints on posting to the list getting help ** Hi Alan, the problem is simple, you no use the tag "class" else "id" 2004 LopezMarcos Design 2004-2005 LopezMarcos Design Soluciones web | New Media | Diseo grfico | Ilustracin | Modelado3D Mvil: +34 667 60 19 96 | Email: [EMAIL PROTECTED] | Web: www.lopezmarcos.com | MADRID Spain - Aviso legal - Este correo electrnico y, en su caso, cualquier fichero anexo al mismo, contiene informacin de carcter confidencial exclusivamente dirigida a su destinatario o destinatarios. Queda prohibida su divulgacin, copia o distribucin a terceros sin la previa autorizacin escrita de LopezMarcos Design. En el caso de haber recibido este correo electrnico por error, se ruega notificar inmediatamente esta circunstancia mediante reenvo a la direccin electrnica del remitente, y le rogamos borre de su sistema inmediatamente el mensaje as como todas sus copias. Cualquier opinin expresada en este mensaje proviene del remitente, excepto cuando el mensaje establezca lo contrario y el remitente est autorizado para establecer que dichas opiniones provienen de LopezMarcos Design. - Disclaimer - The information in this e-mail and in any attachments is confidential and solely for the attention and use of the named addressee(s). You are hereby notified that any dissemination, distribution or copy of this communication is prohibited without the prior written consent of LopezMarcos Design.. If you have received this communication in error, please, notify the sender by reply e-mail, and please immediately delete it and all copies of it from your system. Any views expressed in this message are those of the individual sender, except where the message states otherwise and the sender is authorised to state them to be the views of LopezMarcos Design.
Re: [WSG] My site is broken in Opera
José López wrote: Hi Alan, the problem is simple, you no use the tag class else id 1) I don't think this would do anything different and 2) id's are meant to be unique and I don't want to have a whole bunch of id's all with the same css info, that's bad code and redundant. I think I'll go with some of the recomendations others made and make things simpler. By the way, I use the MathML on my quiz and I'll probably use it more often when I start putting content in, the reason that I have MathML validated on my homepage is to keep all the doctypes the same Bert Doorn wrote: Incidentally, when I went to the site in MSIE, it asked me what program I wanted to open the page with, rather than displaying it. Probably related to your Content-Type: application/xhtml+xml Really? What version of MSIE do you have? I've loaded it many times in mine (6) and I've never gotten that. ** 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] My site is broken in Opera
G'day Incidentally, when I went to the site in MSIE, it asked me what program I wanted to open the page with, rather than displaying it. Probably related to your Content-Type: application/xhtml+xml Really? What version of MSIE do you have? I've loaded it many times in mine (6) and I've never gotten that. MSIE 6.0.2800.1106IC - fully patched but otherwise stock-standard (no plug-ins, not even a Flash player). I don't get this problem on other sites, so it's possibly something to do with the MathML or application/xhtml+xml (if you're feeding that to MSIE). I get a download dialog box in MSIE. Perhaps you have a plug-in of some sort installed for the MathML (which the vast majority of people would not have) so it displays fine for you. Extract from http://www.w3.org/Math/implementations.html : Viewing web pages containing MathML requires a browser that can display MathML. Currently, only Netscape, Mozilla and Amaya can display MathML directly. If you use Microsoft's Internet Explorer, the best solution for MathML display is Design Science MathPlayer. Also, if I go to the Quiz #1 page, in Firefox (1.0), I am told to install additional fonts. In Opera (7.54), on that same page, I see a lot of code/Markup and get a message that XML Parsing Failed. Regards -- Bert Doorn, Web Developer Better Web Design http://www.betterwebdesign.com.au/ Fast-loading, user-friendly websites ** 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] My site is broken in Opera
Hi Alan, I strongly suggest putting the binary stuff into a background image. Google etc. will hate what you have there as will screen readers. Interesting effect but not a good idea unless maybe you put it at the end of the code order. Personally, I'd lose it and use an image as a css background. Is that why you have the mathml doctype? Can't see that it is mathml at all. It's just 1s 0s and nbsp;s. No formulae or anything mathematical to be seen. It's valid but not necessary and may choke older browsers. Also, semantically very poor. Use HTML elements as they were designed. They are not just for (default) visual behaviour, they are structural. Headings have more weight and are used by machines (search engines, screen readers etc.) for real semantic purpose. A div is not the same as a p even though they are both block level elements. The default settings (for devices that ignore the css) will make is pretty well unusable. As with most things, be careful what you ask for. The reason we do what we do here is to stop the need for code forking (different page/stylesheets for different browsers). It's not a good thing to do as you don't know what will happen. How are you determining the user agent? Opera (by default) ids itself as IE and is indeed getting the IE stylesheet (though you mentioned other browsers so this is probably not the issue). My advice, back to basics. Lose all the internal divs (apart from the containers maybe) and use hn p etc. as they should be used and you won't have to style every little spacer div and have a huge stylesheet that really doesn't need to be there. This should solve the issue. By the way, there is absolutely nothing on that page that would require using separate stylesheets if it were semantically correct code. It's the complexity of your HTML that makes it hard for cross browser compatibility. Saying IE doesn't like web standards is in fact wrong. It does them quite well if you use them the right way. Just a few little things to be aware of, none of which should apply to your page. So: div class=entrytitlespan class=contentheadThe Wise Words of Google - 25 November 2004/span/div (etc... Not putting all that here) Should be just: h2The Wise Words of Google - 25 November 2004/h2 p Here's a list of what google thinks of me: /p p jellybean is herebr / jellybean is a perl object server with an http interfacebr / jellybean is a gdr dogbr / jellybean is an enchantingbr / jellybean is a cat pookabr / jellybean is preposition the doorbr / jellybean is about 12br / jellybean is here to help /p p I got this from a href=http://www.googlism.com/;googlism.com/a. /p Peter -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Alan Trick Sent: Friday, December 03, 2004 4:18 PM To: [EMAIL PROTECTED] Subject: [WSG] My site is broken in Opera Hi, I finished a nice update for my website, added a browser detection script on my css because IE doensn't like web standards. Now my site works in all the browsers I have exept for Opera, and I don't know why, can anyone help me with this? the url is http://jellybean.uni.cc n.b. it uses style.css in firefox/mozilla, and styleie.css all other browsers All the pages on the site are valid xhtml+xml and both css files are valid. ** 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 **