IDNetters Forums

Technical News & Discussion => Windows News & Discussion => Topic started by: zappaDPJ on Mar 24, 2009, 21:08:58

Title: Internet Explorer 8 vs web page coding
Post by: zappaDPJ on Mar 24, 2009, 21:08:58
An increasingly large part of my work is based on website design and build. In the past I've focused on the design, layout and quality assurance, leaving the coding to employees. Due in part to the recession and also my desire to learn something new I've recently started coding the sites myself. I've always been able to hand code in HTLM but I'm now using Dreamweaver to create HTLM/CSS based code. While it's far too early in the day to consider myself a particularly skilled coder I do know enough to recognise when there is a problem.

I'm sure everyone with any knowledge of web page coding will be aware of the need to validate their code across as many browsers as possible. I've just upgraded the browser on my workstation from IE7 to IE8 and I'm astounded at just how many websites are not displaying correctly including most of my own. I can even find graphical anomalies on IDNet's site.

Admittedly IE8 does contain a compatibility button which fixes some of the problems (all of them on IDNet's site) but I have to ask why on earth Microsoft has chosen to create a web browser that's incapable of resolving basic HTML/CSS coded websites correctly. It's particularly annoying that every single site I've viewed so far has a border placed around hypertext links on activation. That indicates a broken browser, not broken code. It also appears in many cases that certain information contained in one element is not being interpreted correctly in another if the second element is a child of the first.

The bottom line is why bother creating a browser that breaks almost every website ever written?
Title: Re: Internet Explorer 8 vs web page coding
Post by: zappaDPJ on Mar 24, 2009, 21:13:36
Hmmm, why did I just quote myself?

[Quoted post deleted]

Actually I retract that, the compatibility button doesn't remove the borders around hyperlinks but it does play merry hell if clicked while make a forum post!
Title: Re: Internet Explorer 8 vs web page coding
Post by: kinmel on Mar 24, 2009, 21:27:27
I.E. is the most used browser and most I.E. users are ignorant of the various web design codes.

By wilfully failing to adhere to the recognised protocols, Microsoft hope to browbeat website designers into making their sites IE compatible.

Once this is achieved, then to the masses it is the other browsers that are "broken" and not IE.  Why would you then change to a browser that was not compatible with IE ?

World domination doesn't come east you know.
Title: Re: Internet Explorer 8 vs web page coding
Post by: zappaDPJ on Mar 24, 2009, 22:15:57
Having just read some of the replies made by the IE development team to bug reports raised during the testing phase I'd say you are 100% right.
Title: Re: Internet Explorer 8 vs web page coding
Post by: psp83 on Mar 24, 2009, 23:07:35
Personally i dont have many issues with IE7 or IE8.

My problem is IE6, i HATE that browser. You tell a div to have padding-right: 20px or margin-right: 20px and IE6 always adds half or double the pixels! so it breaks your design as IE6 thinks your divs are bigger than the container, bloody annoying.

We've tested all our sites at work and they work in FF2, FF3, IE6, 7, 8, Opera & Safari.
Title: Re: Internet Explorer 8 vs web page coding
Post by: zappaDPJ on Mar 24, 2009, 23:59:00
Yeah that is really annoying, it took me a while to work out why some of my sites where breaking in IE6 and even longer to fix them.

I still can't work out why IE8 is rendering clicked hyperlinks with a border. I doesn't happen on every site and it's far more obtrusive on dark sites but it looks quite bad on any site imo.

I've attached a couple of examples.

[attachment deleted by admin]
Title: Re: Internet Explorer 8 vs web page coding
Post by: Rik on Mar 25, 2009, 00:40:09
Fairly typical MS behaviour unfortunately. The pay lip service to standards, then enforce their own. :(
Title: Re: Internet Explorer 8 vs web page coding
Post by: psp83 on Mar 25, 2009, 08:07:43
As Rik has said, the dotted border is a typical IE thing. A client asked us to remove it from IE and my response was "i would love to re code IE but i dont think you could afford the price" lol.

EDIT: You should only get that when you click on a link or hover over one.
Title: Re: Internet Explorer 8 vs web page coding
Post by: Ann on Mar 25, 2009, 10:28:45
Dreamweaver is a nightmare.. WYSIWYG it is not.. I use it for our work website and often have to go into the HTML to see what's going on.
Title: Re: Internet Explorer 8 vs web page coding
Post by: psp83 on Mar 25, 2009, 10:48:26
I use Zend mostly, But use dreamweaver (in source code viewer) when working on projects that have more than one person on it.

HTML view > Design View.
Title: Re: Internet Explorer 8 vs web page coding
Post by: Sebby on Mar 25, 2009, 13:31:44
Quote from: Ann on Mar 25, 2009, 10:28:45
Dreamweaver is a nightmare.. WYSIWYG it is not.. I use it for our work website and often have to go into the HTML to see what's going on.


Surely that's the fault of the browser, though?
Title: Re: Internet Explorer 8 vs web page coding
Post by: Ann on Mar 25, 2009, 13:47:23
Sometimes it's the coding.  It adds heights into tables and things although they look as though they are fine but when you look in the browser there's a great empty space at the bottom.  You then have to go into the HTML and delete the height tag and it resets.  Sometimes it is the browser such as when it decides to centre things which Dreamweaver assumes will be left oriented in a table.  Telling it to left things fixes that although it ought maybe to be unnecessary.  Sometimes it also adds extraneous tags which are a mess and I don't like messes so I try to tidy it up.
Title: Re: Internet Explorer 8 vs web page coding
Post by: psp83 on Mar 25, 2009, 15:10:14
Quote from: Ann on Mar 25, 2009, 13:47:23
Sometimes it's the coding.  It adds heights into tables and things although they look as though they are fine but when you look in the browser there's a great empty space at the bottom.  You then have to go into the HTML and delete the height tag and it resets.  Sometimes it is the browser such as when it decides to centre things which Dreamweaver assumes will be left oriented in a table.  Telling it to left things fixes that although it ought maybe to be unnecessary.  Sometimes it also adds extraneous tags which are a mess and I don't like messes so I try to tidy it up.

Use notepad and type it all by hand = no problems then  ;D
Title: Re: Internet Explorer 8 vs web page coding
Post by: zappaDPJ on Mar 25, 2009, 15:27:03
Quote from: psp83 on Mar 25, 2009, 08:07:43
As Rik has said, the dotted border is a typical IE thing. A client asked us to remove it from IE and my response was "i would love to re code IE but i dont think you could afford the price" lol.

EDIT: You should only get that when you click on a link or hover over one.

I general that does seem to be the case, a click on the hyperlink gives a guaranteed border but it also occasionally occurs under other circumstances that I can't quite pin down, perhaps a previously visited link after using the 'Back' button.

As for Dreamweaver, it serves a purpose but I'd agree that it doesn't always correctly rendering the code but then the same can be said for many of the browsers that are in use. I use it because it was the editor of choice for my employees but if I'm honest I don't like it enough to use it correctly. I still generally edit the source in HTML View and use Design View to check my container box parameters are doing what was expected. When I have some free time I'll look around for something more suited to the way I like to work, probably Notepad  :blush: ;D

[EDIT] I was just about to submit that and saw psp's new reply. It's agreed then Notepad IS the HTML editor of choice  :rofl:
Title: Re: Internet Explorer 8 vs web page coding
Post by: Rik on Mar 25, 2009, 15:28:46
It can't make a mistake. :)
Title: Re: Internet Explorer 8 vs web page coding
Post by: psp83 on Mar 25, 2009, 18:40:27
I use Zend Developer (not cheap) but its good for PHP and MySQL and not so good for (X)HTML unless you know what your doing with (X)HTML

The other editor i use is notepad++, its much better than the windows basic notepad and its free  ;D

I never use design view and i hardly use the "auto insert" features in most programs like dreamweaver, i like to have full control over how i format my code and what styles goes in my tables/divs etc.

Another tip is to use a program like "texter", basically its a program where you make shortcuts to code blocks your tend to use all the time, eg, contact form layout.. read more about it here : http://lifehacker.com/software/texter/lifehacker-code-texter-windows-238306.php
Title: Re: Internet Explorer 8 vs web page coding
Post by: Rik on Mar 25, 2009, 18:46:11
Thanks, Paul.  :thumb:
Title: Re: Internet Explorer 8 vs web page coding
Post by: Lance on Mar 25, 2009, 22:49:42
I think i know who to ask next time i need help with some coding for this place!
Title: Re: Internet Explorer 8 vs web page coding
Post by: psp83 on Mar 25, 2009, 23:15:20
Quote from: Lance on Mar 25, 2009, 22:49:42
I think i know who to ask next time i need help with some coding for this place!

Who, Rik? lol.

Seriously though, if i'm not busy and you need(ed) help, i would lend a hand.

Been building websites for 11yrs.
Title: Re: Internet Explorer 8 vs web page coding
Post by: Ann on Mar 25, 2009, 23:58:31
Notepad is what I use I for my own website but that's a fairly simple one.  At work we have to use Dreamweaver and use the corporate template so we get no choice.
Title: Re: Internet Explorer 8 vs web page coding
Post by: Cookie on Mar 26, 2009, 00:26:59
Quote from: zappaDPJ on Mar 24, 2009, 23:59:00
Yeah that is really annoying, it took me a while to work out why some of my sites where breaking in IE6 and even longer to fix them.

I still can't work out why IE8 is rendering clicked hyperlinks with a border. I doesn't happen on every site and it's far more obtrusive on dark sites but it looks quite bad on any site imo.

I've attached a couple of examples.

I'm fairly new to this web programming lark but I initially got borders around my link images when I clicked on them in Firefox and Opera as well IE7.  I got rid of it by setting the border attribute for the image to zero, although a tidier way would be to use a CSS rule.

This is nothing more than a guess but 'border' is a deprecated attribute according to the W3C standards. Perhaps Microsoft have gone a bit overboard with their standards compliance and stopped supporting the border attribute in IE8 (assuming its been used in your code examples of course). :laugh:  Or I might be barking up the wrong flag pole completely 

I've got into the habit of running all my XHTML code through the W3C validators http://validator.w3.org/#validate_by_input and http://jigsaw.w3.org/css-validator/#validate_by_input.  You'd be surprised at the number of sites that don't meet these standards.  :shake:

Cheers

Martin 

Title: Re: Internet Explorer 8 vs web page coding
Post by: Sebby on Mar 26, 2009, 00:30:04
Good point, Martin. I firmly believe that all sites should conform to web standards, although it's not always possible as you have to hack you code so it works in IE!
Title: Re: Internet Explorer 8 vs web page coding
Post by: psp83 on Mar 26, 2009, 08:17:32
Quote from: Sebby on Mar 26, 2009, 00:30:04
Good point, Martin. I firmly believe that all sites should conform to web standards, although it's not always possible as you have to hack you code so it works in IE!

It is possible, our sites at work pass w3c checks and thats with IE hacks.

Just use IE css file.

<link href="style/public.css" rel="stylesheet" type="text/css" media="screen" />
<!--[if IE 6]>
<link rel="stylesheet" type="text/css" href="style/public-ie.css" media="screen" />
<![endif]-->

<!--[if IE 7]>
<link rel="stylesheet" type="text/css" href="style/public-ie7.css" media="screen" />
<![endif]-->

And you could also use _ (underscore) infront of your css for IE6, eg.

.blueBox {
width: 325px;
height: 325px;
border: none;
background-color: blue;
padding: 10px;
_padding: 5px;
}

But this way is old and i dont use it myself as i dont think it passes w3c validation anymore.
Title: Re: Internet Explorer 8 vs web page coding
Post by: psp83 on May 12, 2009, 12:46:36
for the original poster.

try adding these styles to your stylesheet.

a {
  outline: none;
}

:focus {
  -moz-outline-style: none;
}

This should get rid of the dotted borders put around link
Title: Re: Internet Explorer 8 vs web page coding
Post by: psp83 on May 12, 2009, 13:02:35
code above will work on all links, including this forum if you wanna use it.
Title: Re: Internet Explorer 8 vs web page coding
Post by: Sebby on May 12, 2009, 13:09:57
:thumb:
Title: Re: Internet Explorer 8 vs web page coding
Post by: Lance on May 12, 2009, 13:13:19
Thanks Paul :)
Title: Re: Internet Explorer 8 vs web page coding
Post by: Rik on May 12, 2009, 13:56:15
Thanks, Paul. :thumb:
Title: Re: Internet Explorer 8 vs web page coding
Post by: zappaDPJ on May 12, 2009, 14:47:36
Quote from: psp83 on May 12, 2009, 13:02:35
code above will work on all links, including this forum if you wanna use it.

It certainly does, thank you so much for posting that, I really appreciated it  :)  :thumb: :karma:
Title: Re: Internet Explorer 8 vs web page coding
Post by: psp83 on May 12, 2009, 15:19:56
no prob, i like to help where i can. plus we've just been paid to fix it on another site so why not share it  ;D
Title: Re: Internet Explorer 8 vs web page coding
Post by: Rik on May 12, 2009, 16:22:30
 ;D

Even better.  :thumb:
Title: Re: Internet Explorer 8 vs web page coding
Post by: colonelsun on Jun 04, 2009, 21:02:08
Had to completely rollback IE 8 as it conflicted with PayPal. I couldn't make any payments on their website as the page loaded incorrectly with clickable buttons over the text, some of the text was missing anyway and the 'PAY' button was nowhere to be seen. A fruitful 30 minutes on Google led me to a Microsoft help page that rolled back the browser to IE 7 without losing my settings and PayPal works for me now.

Personally i thought IE 8 was bloated.
Title: Re: Internet Explorer 8 vs web page coding
Post by: Sebby on Jun 04, 2009, 21:15:13
Did you try compatibility mode?
Title: Re: Internet Explorer 8 vs web page coding
Post by: colonelsun on Jun 05, 2009, 17:49:50
Sebby...yeah tried that and the most important part of the PayPal page wouldn't load, the 'pay' button.

Apart from a few new security add ons i couldn't see the benefits of IE 8, they were completely lost on a regular internet user like me.
Title: Re: Internet Explorer 8 vs web page coding
Post by: Sebby on Jun 05, 2009, 17:51:58
Tbh, I actually quite like IE8, but I would never choose to use IE as my main browser when there are much better alternatives, such as Firefox.
Title: Re: Internet Explorer 8 vs web page coding
Post by: colonelsun on Jun 05, 2009, 20:21:20
Tbh, and i'm nearly choking on my jammy dodger biscuit here, IE 8 seemed a bit faster than IE 7 but i hated the way it looked cluttered around the top of the screen, especially where the URL box was....far too distracting for me.
Title: Re: Internet Explorer 8 vs web page coding
Post by: Den on Jun 05, 2009, 20:30:43
At one time or another I have tried most of the brousers but I keep returning to IE and I truly think that IE8 is the best of the lot but I suppose Firefox would be my second choice.  ;D
Title: Re: Internet Explorer 8 vs web page coding
Post by: Niall on Jun 07, 2009, 11:26:15
Does anyone actually like the new IE8? I've been forced to use it for a couple of things recently. Last night at a party I found myself spending 3 hours fixing someone's network, which only had IE8 installed. That browser is very bloated and sluggish compared to Firefox. For a change I actually gave IE a proper chance, and only installed Firefox on their computers after spending what felt like an ice age waiting for it to load certain websites I was downloading security software from, and installing all updates, etc.

It's horrid :(
Title: Re: Internet Explorer 8 vs web page coding
Post by: Rik on Jun 07, 2009, 11:30:42
I think so, Niall, but others like it. I guess it will always provoke a love/hate reaction.
Title: Re: Internet Explorer 8 vs web page coding
Post by: Simon on Jun 07, 2009, 11:31:41
I was also installing a router on a friends PC yesterday afternoon, and as the Windows Updates icon was present, I thought I might as well get them up to date, and lo and behold, IE8 appeared!  I only had a very quick glance, and it didn't look much different to IE7 to me, but then, they use Firefox anyway, so hopefully, it won't be an issue.
Title: Re: Internet Explorer 8 vs web page coding
Post by: Sebby on Jun 07, 2009, 13:44:50
I dislike IE, full stop, and won't use it unless I'm forced to (i.e. at work). That said, I do feel that IE8 is the best version yet.
Title: Re: Internet Explorer 8 vs web page coding
Post by: Simon on Jun 07, 2009, 14:45:52
I'm actually on it now, just for testing, and the forum looks fine on it.  :)
Title: Re: Internet Explorer 8 vs web page coding
Post by: Rik on Jun 07, 2009, 15:44:32
That's a relief. :)
Title: Re: Internet Explorer 8 vs web page coding
Post by: Sebby on Jun 07, 2009, 16:22:30
Well we have got the compatibility tag in there, so it should be fine. :)
Title: Re: Internet Explorer 8 vs web page coding
Post by: Rik on Jun 07, 2009, 16:33:03
Phew. :)
Title: Re: Internet Explorer 8 vs web page coding
Post by: colonelsun on Jun 07, 2009, 17:56:20
With IE 8 you'll find that Microsoft are always asking you to download security patches or updates. Why on earth they didn't just secure IE 7 and clean it up a bit...i don't know. But IE 8 is worringly a heavy download and 10 minutes later i was advised there was a whole clutch of patches for it....hardly inspiring is it?

But it's what you're most comfortable with. I just thank god AOL aren't in the browser market.
Title: Re: Internet Explorer 8 vs web page coding
Post by: Rik on Jun 07, 2009, 17:57:10
They were for a time, of course. :)
Title: Re: Internet Explorer 8 vs web page coding
Post by: Niall on Jun 07, 2009, 20:23:27
And what a shockingly bad one it was :D
Title: Re: Internet Explorer 8 vs web page coding
Post by: Rik on Jun 08, 2009, 09:35:03
 ;D

Though my first browser, back when you paid for them, was Netscape.
Title: Re: Internet Explorer 8 vs web page coding
Post by: colonelsun on Jun 08, 2009, 21:50:43
AOL was my first ever ISP and so my first contact with the internet. An AOL rep once told me to stick with the AOL browser because IE had a tendency to fry your hard drive...yes honestly.

After about 6 months, getting used to the internet, solving computer problems myself, i thought it rather daring to close the AOL browser and click on the IE button. You've never seen so much sweat on one person's body before, except perhaps Paula Radcliffe when she stopped for an impromptu pee during the London Marathon and the good old BBC filmed every moment......so i exited the room with my pc in it and simply ran for it. Fifteen minutes later, clutching a cigarette and 2 sets of rosary beads, i entered the room to survey the damage. And IE stared back at me in all it's bewildering glory. There was no burnt hard drive and i never looked back.

I never contacted AOL again apart from their live customer services rep when i had speed issues. And i quickly told her what i thought of her when she suggested my slow broadband speed was due to the fact i had an earring.
Title: Re: Internet Explorer 8 vs web page coding
Post by: Sebby on Jun 08, 2009, 21:54:11
:rofl:

Brilliant! ;D
Title: Re: Internet Explorer 8 vs web page coding
Post by: Rik on Jun 09, 2009, 09:31:38
:rofl:

The classic support call to AOL. ;)
Title: Re: Internet Explorer 8 vs web page coding
Post by: Gary on Jun 09, 2009, 09:53:21
Quote from: colonelsun on Jun 05, 2009, 17:49:50
Sebby...yeah tried that and the most important part of the PayPal page wouldn't load, the 'pay' button.

Apart from a few new security add ons i couldn't see the benefits of IE 8, they were completely lost on a regular internet user like me.
Used IE 8 yesterday with paypal, no problems,  was having another play with it as its as fast on my system as FF really, not a lot between them  ??? most odd if its set to compatibility mode all the time you should have no issues, or when you arrive at the site click the compatibility icon, maybe if you did that during the process it would cause an issue as you were changing how the browser appeared to the site during a transaction
Title: Re: Internet Explorer 8 vs web page coding
Post by: Sebby on Jun 09, 2009, 19:02:28
It's funny how IE is a still a bit of a joke (although I still think it's the best version so far).
Title: Re: Internet Explorer 8 vs web page coding
Post by: Rik on Jun 09, 2009, 19:03:46
I discovered yesterday that the 3 dongle doesn't really like to top up via FF, it's much happier with IE. :(
Title: Re: Internet Explorer 8 vs web page coding
Post by: Sebby on Jun 09, 2009, 19:04:33
Interestingly, you don't see many sites these days that don't work well in FF. A few years back, it was a different story.
Title: Re: Internet Explorer 8 vs web page coding
Post by: Rik on Jun 09, 2009, 19:08:53
It worked when I did the top up from the dongle software, which launched FF. However, when you first top up with a card, they take your money but won't let you apply the top up immediately, requiring 7 days to clear the card. I phoned them and a guy walked me through doing it manually, by FF returned an SSL error, IE worked.
Title: Re: Internet Explorer 8 vs web page coding
Post by: colonelsun on Jun 09, 2009, 20:58:38
Quote from: Gary on Jun 09, 2009, 09:53:21
Used IE 8 yesterday with paypal, no problems,  was having another play with it as its as fast on my system as FF really, not a lot between them  ??? most odd if its set to compatibility mode all the time you should have no issues, or when you arrive at the site click the compatibility icon, maybe if you did that during the process it would cause an issue as you were changing how the browser appeared to the site during a transaction

Not really sure, and i can't really remember, what i did about the compatability thing during the install of IE 8. I have a hunch i may have simply followed the install instructions so as to not to get into difficulties later. So that strategy really paid off. LOL