Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Geek Culture / Website layout differences between browsers

Author
Message
Rudolpho
19
Years of Service
User Offline
Joined: 28th Dec 2005
Location: Sweden
Posted: 7th Jul 2009 15:04
So I've been going about making a website... not much to it, but anyway; apparently the layout differs somewhat between for example FireFox and IE. You wouldn't think it should be that much of an issue, but unfortunately it throws borders off from each others alignment and even seems to remove certain table cells.

I can't get my head around this; I suppose it has something to do with the fact that I don't have any doctype declaration. If I add that in however, the page messes up in both browsers

Well, here's the page in question. It's just a thing I set up rather quickly to test a layout idea, so no direct content and also lacks thorough stylesheet usage.

I've been trying to fix this for about four hours now, so I was sort of hoping that one of you experienced guys out there might just happen to drop by and give me a hint or two while I go on lunch


Thanks for any help or advice,
Rudolpho

BiggAdd
Retired Moderator
20
Years of Service
User Offline
Joined: 6th Aug 2004
Location: != null
Posted: 7th Jul 2009 15:16
Is it possible for you to take some screenshots to show your problem?

Rudolpho
19
Years of Service
User Offline
Joined: 28th Dec 2005
Location: Sweden
Posted: 7th Jul 2009 15:39
Ok, here you go:
As viewed in FireFox (v3) (proper)
As viewed in Internet Explorer (v7) (off)

I've marked the wrong parts in the IE image.

NeX the Fairly Fast Ferret
20
Years of Service
User Offline
Joined: 10th Apr 2005
Location: The Fifth Plane of Oblivion
Posted: 7th Jul 2009 15:43
CSS is bloody annoying, does this to me all the time. Often have to rewrite code three, four times.

BiggAdd
Retired Moderator
20
Years of Service
User Offline
Joined: 6th Aug 2004
Location: != null
Posted: 7th Jul 2009 15:45
I'll take a look at your code when I get back from the doctors!



Rudolpho
19
Years of Service
User Offline
Joined: 28th Dec 2005
Location: Sweden
Posted: 7th Jul 2009 16:11
Thanks. Good luck with the appointment(?).

Sid Sinister
19
Years of Service
User Offline
Joined: 10th Jul 2005
Location:
Posted: 7th Jul 2009 17:45
All my warm fuzzy feelings about web development slip away when I test on IE. It truly does piss me off to the nth degree how MS feels they need to "pave the way to the future" and not just conform to the rendering standards that every other browser does. It gets ridiculous when you have to start adding code in your html that specifically gives it instructions how to get your webpage to work with IE.

IE just sucks in general. It's slow to start and slow to render. And the little warnings along the top are beyond annoying. Once you turn them off, IE and Windows has a security fit and puts annoying icons in your system tray.

/rant

"If I have seen a little further it is by standing on the shoulders of Giants" - Isaac Newton
Current Project: http://strewnfield.wordpress.com/ (Last updated 06/11/09)
NeX the Fairly Fast Ferret
20
Years of Service
User Offline
Joined: 10th Apr 2005
Location: The Fifth Plane of Oblivion
Posted: 7th Jul 2009 18:25
It's not just IE though. Opera Wii forces some stupid excessively wide font that jumps out of sidebars and stretches parts of the layout. IE is accountable for some terrible hacks, but other browsers have stupid tendencies too.

BiggAdd
Retired Moderator
20
Years of Service
User Offline
Joined: 6th Aug 2004
Location: != null
Posted: 8th Jul 2009 01:16
Hey Rudolpho. Had a look at your code, and I couldn't get my head round it! Sorry, too many tables!

However I've re-written the basic Layout using CSS and Div boxes, which displays correctly in Firefox and IE 5.01+

Here is how it looks:


The code:


and the various image files I used are attached to this post.


Just a simple case for you to insert your content etc.

Sorry I couldn't tweak your original code!

Cheers,
BiggAdd

Attachments

Login to view attachments
Clbembry
18
Years of Service
User Offline
Joined: 10th Dec 2006
Location: Minnesota
Posted: 8th Jul 2009 06:12
Quote: "ou wouldn't think it should be that much of an issue"


You would think for how big of a role Microsoft plays in the world of computing, they could make a web browser that isn't a piece of ****... In my mind those stars were a very naught word

Rudolpho
19
Years of Service
User Offline
Joined: 28th Dec 2005
Location: Sweden
Posted: 8th Jul 2009 09:37
Thank you very much, BigAdd.
Wow, that was really compact in contrast to my code.
Seems you've got some interresting use of css I didn't know about in that; I will have a look at it when I get home tonight and see what I can learn from it.

Oh and about the tables, I didn't know divs could be that expandable.
Thanks again for showing me

Phaelax
DBPro Master
22
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 8th Jul 2009 23:53
I've been considering for quite some time, compiling a list of differences between browsers and how they render various elements.

Most obvious difference to keep in mind is how IE handles padding. It will adding the padding size to the container's overall dimensions, while Gecko/webkit do not. So if you have "width:100;padding:2;", IE will make it 104 pixels wide instead while the others stay at 100px.

I bet there's lists out there, but if anyone would feel like creating a detailed list with me, feel free.

[url="http://dbcc.zimnox.com"][/url]

Login to post a reply

Server time is: 2025-05-30 14:04:04
Your offset time is: 2025-05-30 14:04:04