![]() |
#1 |
w3 addict
(Major Dude) Join Date: May 2004
Location: Norway
Posts: 1,806
|
IE, FF and Opera driving me nuts
I am making a webpage, a page for some of my friends which I play a game called Second Life with, but no matter. Everyone knows that the browsers displays stuff different, and IE is far into the plains when it comes to following the Document Object Model.
I my case, I am having trouble cause I use borders. If you look at my page http://www.tempus-web.net/ and look at the menu to the left, and do so with Firefox and Opera, they are almost similar, but if you open this page with Internet Explorer, you'll see the Document Object Model here is very different, and it makes my menu very narrow. I am wondering, is there any model which makes them appear almost the same, a hack or trick which makes it look similar with IE, FF and Opera? Hate to bug you for this, and to those who think I spam, this page have no commercial content at all. It's plainly for my Second Life friends. -- And I forgot the current stylesheet. Called Asylum located http://www.tempus-web.net/style/asylum.css so you don't have to do source-digging to help me. ![]() 09 F9 11 01 9D 74 E8 5B D8 41 56 C3 63 56 81 C0 |
![]() |
![]() |
![]() |
#2 |
Junior Member
Join Date: Aug 2002
Location: Sweden
Posts: 38
|
|
![]() |
![]() |
![]() |
#3 |
Forum King
Join Date: Jan 2002
Location: the nether reaches of bonnie scotland
Posts: 13,375
|
Vodoc's advice is likely to be helpful, yeah. I don't know what the specific problem is, but you should note that the problem is not with the Document Object Model, it's with IE's Box Model. The DOM is something completely different.
|
![]() |
![]() |
![]() |
#4 |
not fucked, not quite.
(Forum King) |
If you put a . before a property in your stylesheet, you can set a different value for IE.
Something like.. code: Atleast if I'm remembering correctly. |
![]() |
![]() |
![]() |
#5 |
Forum King
Join Date: Jun 2003
Location: Milwaukee
Posts: 4,577
|
Looks okay in IE for me.
Here's a tip for getting stuff to work pretty similarly across browsers. Use tables for layout. Sure it sucks because you're not supposed to use tables for layout, but when it comes down to a choice between what actually works and 'the propery way' of writing html code. I'll take what works. Sorry web standards project... |
![]() |
![]() |
![]() |
#6 | |
Forum King
|
Quote:
|
|
![]() |
![]() |
![]() |
#7 | ||
Forum King
Join Date: Aug 2002
Posts: 7,254
|
Quote:
I'd like to point out that web standards are why interoperability exists at all. People like you are exactly why IE doesn't support standards, and why people like me have to work so hard to get websites which work with IE, and why there is any problem with interoperability in the first place. ... Oh, and: Quote:
Freedom of speech is the basic freedom of humanity. When you've lost that, you've lost everything. 1\/\/4y 34|<$p4y 1gp4y 33714y, 0d4y 0uy4y? | Roses are #FF0000; Violets are #0000FF; chown -R ${YOU} ~/base The DMCA. It really is that bad. : Count for your life. |
||
![]() |
![]() |
![]() |
#8 |
Forum King
Join Date: Jun 2003
Location: Milwaukee
Posts: 4,577
|
Don't hate me, hate IE, it's developers and it's many users.
People like me aren't the reason IE doesn't support standards. If you want to blame someone blame Microsoft and partially Netscape. At least I use proper markup. Sorry if I use tables for layout. What's the big difference really? It's either messy HTML or messy CSS. The mess still exists, we just moved it to a different room of the house. FYI for my personal sites (where I actually care and have the time to spend messing with it forever) I use CSS based layouts. At work, when shit needs to work right away, tables work right away. |
![]() |
![]() |
![]() |
#9 | |
Forum Domo
Join Date: Jan 2004
Location: Everyone, get over here for the picture!
Posts: 4,313
|
Quote:
![]() elevatorladyelevatorladyelevatorladyelevatorladyelevatorladylevitateme |
|
![]() |
![]() |
![]() |
#10 |
Forum King
Join Date: Jun 2003
Location: Milwaukee
Posts: 4,577
|
My need to get things done on budget and on deadline require me to be apathetic when it comes to web standards.
I'd rather eat and have a place to live than follow web standards. Sorry for my lack of conviction and my unwillingness to die for the cause. |
![]() |
![]() |
![]() |
#11 |
Forum King
Join Date: Dec 2003
Location: Good ol' Britain
Posts: 2,750
|
2nd life? I heard that mentioned on a podcast I listen to yesterday.
Apprantely it was designed to be an mmorpg sims, but now everyone just uses it for cyberfucking. I'll stick with regular porn. |
![]() |
![]() |
![]() |
#12 |
Forum King
Join Date: Jun 2003
Location: Milwaukee
Posts: 4,577
|
I read a few articles about that game in The Escapist it intrigues me, apparently the vampire people don't like it when your naked gay troll with detachable penises crashes their rave...
|
![]() |
![]() |
![]() |
#13 | |
Forum King
Join Date: Feb 2004
Posts: 9,229
|
Quote:
That's what it's all about. Does it work or not. CSS isn't perfect either. I don't see how using tables would cause IE not to obey web standards. |
|
![]() |
![]() |
![]() |
#14 |
not fucked, not quite.
(Forum King) |
I'm not even going to join into this argument. I've stated my opinion many times before.
Just look to your left for my opinion ![]() |
![]() |
![]() |
![]() |
#15 |
Forum King
Join Date: Jan 2002
Location: the nether reaches of bonnie scotland
Posts: 13,375
|
Tables for layout breaks mobile devices, and various other things. It's just not a good way forward.
|
![]() |
![]() |
![]() |
#16 |
w3 addict
(Major Dude) Join Date: May 2004
Location: Norway
Posts: 1,806
|
I fixed it with a hack. Probably not 100% safe, but the0.1% which uses IE and knows it professinally enough to force certain criterias will have to sit there and look dumb, anyway.
The hack is based on HTTP request browser by PHP, and by determaining that, choose to load an extra styleshit for IE. Um styleshit.. stylesheet for IE. Working good for now. But IE is teh h8, no doubt. Thanks for your um eh.. table-discussion. If I went with tables, I wouldn't asked here, cause I never go that way again. The hack you talk about Ryan don't go for all IE browser, meaning they've fixed the bug. 09 F9 11 01 9D 74 E8 5B D8 41 56 C3 63 56 81 C0 |
![]() |
![]() |
![]() |
#18 |
w3 addict
(Major Dude) Join Date: May 2004
Location: Norway
Posts: 1,806
|
Yeah, cause I I use a hack forcing IE to run another style than FF and Opera. I should not need to do that.
09 F9 11 01 9D 74 E8 5B D8 41 56 C3 63 56 81 C0 |
![]() |
![]() |
![]() |
#20 |
Forum King
Join Date: Mar 2004
Posts: 3,069
|
Using conditional comments is a much better and cleaner way to load an alternate IE-only stylesheet, in my opinion. You can direct them at any version of IE, or all of them, and any browser that isn't IE ignores them.
|
![]() |
![]() |
![]() |
#21 |
w3 addict
(Major Dude) Join Date: May 2004
Location: Norway
Posts: 1,806
|
That's not right Wolfgang. Some browsers can identify itself as internet explorer, anyway, it got additional parameters for it's own name and version, so it's possible to take this little info to get the real browsers name, but usually when it identifies itself as IE, the full version of the browser it really is, is lacking.
Anyway, yes, I determain by PHP what browser it is, and add an additional CSS to the markup. No other browsers have been able to make this statement true, so it works for now. 09 F9 11 01 9D 74 E8 5B D8 41 56 C3 63 56 81 C0 |
![]() |
![]() |
![]() |
#22 |
Forum King
Join Date: Mar 2004
Posts: 3,069
|
PulseDriver, you don't understand. I know things like Opera include MSIE in their UA string, but conditional comments have nothing to do with the UA string. For example:
code: These will look like normal comments to most browsers. But they're specific to IE and IE only supports them. So everything except IE will ignore them. In the example above, only versions of IE less than or equal to 6 will use ieonly.css. So IE 7 will ignore it. Browser sniffing with PHP is quite easy, but still a bit messy particularly because Opera can identify itself as Mozilla/IE/Opera (user's choice) and you can change the UA string in many Gecko-based browsers by some simple tinkering with the config. So if your intention is to target IE alone, conditional comments are the way forward. |
![]() |
![]() |
![]() |
#23 |
w3 addict
(Major Dude) Join Date: May 2004
Location: Norway
Posts: 1,806
|
Yes, and that is what I do
![]() If someone with Gecko want to tinker with that file to make it think it's IE, that's fine by me... Highly doubt someone ever will though.. lol 09 F9 11 01 9D 74 E8 5B D8 41 56 C3 63 56 81 C0 |
![]() |
![]() |
![]() |
#24 |
Forum King
Join Date: Mar 2004
Posts: 3,069
|
I'm not sure what you mean... conditional comments do show up in the source, they're part of the HTML if you decide to include them there.
Hmm, I dunno though, I have a small script that logs all the user agents that visit my site. Most are bots, IE6 and Firefox 1.0/1.5, but amongst all the others, there are people who think they're clever and have "Wouldn't you just love to know?" or "Fuck you" as their UA string. And while I don't give a shit whether my site displays all right for these people, conditional comments will still do the job correctly since they're unrelated to the UA string. |
![]() |
![]() |
![]() |
#25 |
w3 addict
(Major Dude) Join Date: May 2004
Location: Norway
Posts: 1,806
|
Well, if they want to have "Fuck you" in their UA string, they will get the original content, like anyone else. It will pick up any other OA, as I have based the search for browsers as modern, so unless it's Internet Explorer, it will get the regular stylesheet. If it doesn't support stylesheet, it will look mostly like when you choose the "No style" in the styles menu.
And I don't use the IE comment, I use PHP get_browser 09 F9 11 01 9D 74 E8 5B D8 41 56 C3 63 56 81 C0 |
![]() |
![]() |
![]() |
#26 |
Ninja Master!
(Forum King) Join Date: Mar 2001
Location: Hotel California
Posts: 4,333
|
When I'm working on a website, I code out what works, with no regard for standards, since as we all know, no mainstream browser really follows the standards anyways, so why should I take the effort to do so as well when it won't even work right?
|
![]() |
![]() |
![]() |
#27 | |
Forum King
|
Quote:
|
|
![]() |
![]() |
![]() |
#28 |
Ninja Master!
(Forum King) Join Date: Mar 2001
Location: Hotel California
Posts: 4,333
|
Noone likes me.
![]() |
![]() |
![]() |
![]() |
#29 |
w3 addict
(Major Dude) Join Date: May 2004
Location: Norway
Posts: 1,806
|
Hum, another thing about IE, FF and Opera.
code: is not the same as code: Where the ampersand (&) nbsp semi-colon (;) is reperesenting a space. Is this true? When I use the float value on text towards the psuedo element:first-letter single character words like I and A will have the text floating all the way upon it, even if there is a regular space (not forced) placed after it. I hate have to adding (&)nbsp; after all articles I start with either I or A. 09 F9 11 01 9D 74 E8 5B D8 41 56 C3 63 56 81 C0 Last edited by PulseDriver; 8th May 2006 at 13:06. |
![]() |
![]() |
![]() |
#30 | ||||
Forum King
Join Date: Aug 2002
Posts: 7,254
|
Quote:
Quote:
Quote:
[edit] Quote:
Freedom of speech is the basic freedom of humanity. When you've lost that, you've lost everything. 1\/\/4y 34|<$p4y 1gp4y 33714y, 0d4y 0uy4y? | Roses are #FF0000; Violets are #0000FF; chown -R ${YOU} ~/base The DMCA. It really is that bad. : Count for your life. |
||||
![]() |
![]() |
![]() |
#31 | |
Forum King
Join Date: Jun 2003
Location: Milwaukee
Posts: 4,577
|
Quote:
I'd be willing to wager that most browsers on wireless devices (phones, palm pilots, etc..) do understand stylesheets. What are some of the mobile devices that understand html but not css, anyone? I'd also be willing to wager that people who still surf the net with Netscape 4.x or worse really don't understand what the internet is really about. I'm not going to worry about ruinging the experience for 0.0000001% of the audience (netscape 4.x, palm piltoers, etc..) as much as I am about ruining the experience for 95% of the audience (IE users). |
|
![]() |
![]() |
![]() |
#32 | |
Forum King
|
Quote:
Whether you hate it or not, it must be done. Otherwise you lose business. UNLESS you have a secret plan to force Microsoft to rewrite or fix Trident for Standards Compliance? I can write compliant XHTML until the cows come home, but I still have to hack and alter for Microsoft's junk. |
|
![]() |
![]() |
![]() |
#33 |
w3 addict
(Major Dude) Join Date: May 2004
Location: Norway
Posts: 1,806
|
I used & nbsp; char delimiter in the second example, not in the first. Anyway, do anyone have expertise using .procmail? I need to forward some emails through auto-forward to a PHP program on my website.
09 F9 11 01 9D 74 E8 5B D8 41 56 C3 63 56 81 C0 |
![]() |
![]() |
![]() |
#34 | |
Resident Floydian
Join Date: Aug 2003
Posts: 6,222
|
Quote:
![]() I'm a psychosomatic sister running around without a leash. |
|
![]() |
![]() |
![]() |
#35 |
w3 addict
(Major Dude) Join Date: May 2004
Location: Norway
Posts: 1,806
|
![]() :P 09 F9 11 01 9D 74 E8 5B D8 41 56 C3 63 56 81 C0 |
![]() |
![]() |
![]() |
#36 | |
Ninja Master!
(Forum King) Join Date: Mar 2001
Location: Hotel California
Posts: 4,333
|
Quote:
Are you a good snuggler? |
|
![]() |
![]() |
![]() |
#38 | |||||
Forum King
Join Date: Aug 2002
Posts: 7,254
|
Quote:
See the attachment for what it would really look like (if properly designed, and without the style attributes). Quote:
Try surfing around with this thing for a while: http://www.opera.com/products/mobile/operamini/demo.dml Or this: http://www.delorie.com/web/wpbcv.html Quote:
![]() Second, interoperability is exactly why I write in XHTML/CSS, instead of the very broken idea of using tables. Quote:
Quote:
Freedom of speech is the basic freedom of humanity. When you've lost that, you've lost everything. 1\/\/4y 34|<$p4y 1gp4y 33714y, 0d4y 0uy4y? | Roses are #FF0000; Violets are #0000FF; chown -R ${YOU} ~/base The DMCA. It really is that bad. : Count for your life. |
|||||
![]() |
![]() |
![]() |
#39 |
Forum King
Join Date: Jun 2003
Location: Milwaukee
Posts: 4,577
|
so what happened to those images at the top on your screenshot? Or should I be setting those as backgrounds of divs or something?
|
![]() |
![]() |
![]() |
#40 |
w3 addict
(Major Dude) Join Date: May 2004
Location: Norway
Posts: 1,806
|
YEs mattress, you make <h1><span>About Plastic</span></h1> or whatever that image is saying and do
code: Laters.. 09 F9 11 01 9D 74 E8 5B D8 41 56 C3 63 56 81 C0 |
![]() |
![]() |
![]() |
|
Thread Tools | Search this Thread |
Display Modes | |
|
|