Mozilla & Netscape vs. IE

This is a discussion on "Mozilla & Netscape vs. IE" within the Web Page Design section. This forum, and the thread "Mozilla & Netscape vs. IE are both part of the Design Your Website category.



Go Back   Webforumz.com > Main Forums > Design Your Website > Web Page Design

Notices


Closed Thread
 
LinkBack Thread Tools
  #1 (permalink)  
Old Jun 2nd, 2005, 19:26
New Member
Join Date: Jun 2005
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Mozilla & Netscape vs. IE

I have no idea why but for some reason IE's left:0;top:0; seems to be off. For example, when the code is...
Code: Select all
<div style="position:absolute;left:0px;top:0px;"> 
[img]images/b.jpg[/img]
<div style="position:absolute;left:0px;top:0px;"> 
[img]images/a.jpg[/img] 
</div>
A small image (image b) is supposed to be in the top left hand corner, obviously, but instead it's all the way to the left but about 4 or 5 pixels from the top, but the bigger image is at the top right hand corner, but it still throws all other <div> values off by about 5px's too far down. In Mozilla and Netscape the code runs as I'd like it to with the small image being in the corner and the bigger one directly beneath with no effect on other <div> values. What can I do to fix this IE frustration?

  #2 (permalink)  
Old Jun 2nd, 2005, 20:19
Rob's Avatar
Rob Rob is offline
Head Admin & CEO

SuperMember
Join Date: Jul 2003
Location: at my desk
Age: 34
Posts: 2,952
Blog Entries: 7
Thanks: 7
Thanked 4 Times in 4 Posts
Send a message via MSN to Rob Send a message via Skype™ to Rob
This is likely because the image is positioned absolutely... but WITHIN a relative container.

The <body> element by default has padding so try setting padding and margin to zero on the body element (or the images parent container)

Hope this helps.
__________________
Rob - SEO Specialist
Owner & Founder of Webforumz.com

I am currently unavailable for private work
  #3 (permalink)  
Old Jun 2nd, 2005, 20:21
Reputable Member
Join Date: Aug 2003
Location: United Kingdom
Posts: 341
Thanks: 0
Thanked 0 Times in 0 Posts
try tidying up your code:
Code: Select all
<div style="position:absolute;left:0;top:0;"> 
[img]images/b.jpg[/img]
</div> 
<div style="position:absolute;left:0;top:0;"> 
[img]images/a.jpg[/img] 
</div>
Does that help any?
  #4 (permalink)  
Old Jun 2nd, 2005, 20:32
Reputable Member
Join Date: Aug 2003
Location: United Kingdom
Posts: 341
Thanks: 0
Thanked 0 Times in 0 Posts
With this updated code...
Code: Select all
<div style="position:absolute;left:0px;top:0px;border:1px solid black;"> 
[img]images/a.gif[/img] 
</div>

<div style="position:absolute;left:0px;top:0px;border:1px solid black;"> 
[img]images/b.gif[/img] 
</div>
I get this in IE...

and this in Firefox...

Is that the problem you have?
  #5 (permalink)  
Old Jun 2nd, 2005, 20:40
New Member
Join Date: Jun 2005
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
No, the problem is that the small box will not go up to the corner it stays about 5 pixels away. I've tried setting margins and padding to 0 on the body and cleaning the code, and it's still doing this in IE; firefox and netscape are okay.
  #6 (permalink)  
Old Jun 2nd, 2005, 20:42
Reputable Member
Join Date: Aug 2003
Location: United Kingdom
Posts: 341
Thanks: 0
Thanked 0 Times in 0 Posts
Do you have any other styles applied to the page or its elements?

You'll note that I changed the order of the DIV's, otherwise (in your code) the little image is hidden under the bigger one.
  #7 (permalink)  
Old Jun 2nd, 2005, 20:48
New Member
Join Date: Jun 2005
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
I have other elements later on in the page but no visual elements before those two. I'm not sure if I'm seeing your screenshot correct or not but if the gray one is sticking out of the bottom of the red one then that's how mine is.
  #8 (permalink)  
Old Jun 2nd, 2005, 20:52
New Member
Join Date: Jun 2005
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts


That's a drawing of what it looks like.
  #9 (permalink)  
Old Jun 2nd, 2005, 20:57
New Member
Join Date: Jun 2005
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts


That's firefox and netscape
  #10 (permalink)  
Old Jun 3rd, 2005, 16:03
Rob's Avatar
Rob Rob is offline
Head Admin & CEO

SuperMember
Join Date: Jul 2003
Location: at my desk
Age: 34
Posts: 2,952
Blog Entries: 7
Thanks: 7
Thanked 4 Times in 4 Posts
Send a message via MSN to Rob Send a message via Skype™ to Rob
I think the best thing you can do here is to post it up on a url so we can see whats going on.
__________________
Rob - SEO Specialist
Owner & Founder of Webforumz.com

I am currently unavailable for private work
Closed Thread

Tags
mozilla, netscape

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
CSS & Firefox/Netscape beerme Web Page Design 1 Feb 9th, 2008 03:46
Footer in Netscape Moonlilly Starting Out 2 Apr 29th, 2007 09:14
Netscape 6 crashing imagesetting Web Page Design 5 Apr 3rd, 2007 09:06
DIV alignment in Firefox and Netscape johnmr Web Page Design 1 Sep 11th, 2006 17:15
Netscape/Mozilla - skinning those scrollbars! gwx03 Web Page Design 15 Apr 8th, 2004 19:37


All times are GMT. The time now is 15:50.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43