Submit Your Article Webforumz RegistrationAnnouncements Contact Webforumz StaffContact
Home Resources Blogs Meet the Team Contact Register
 

Go Back   WebForumz.com > The Code > HTML, XHTML and CSS

Closed Thread
 
LinkBack Thread Tools
Old June 2nd, 2005, 03:26 PM   #1
New Member
 

Join Date: Jun 2005
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0 p_hp_fan is on a distinguished road
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:
<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?
p_hp_fan is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Old June 2nd, 2005, 04:19 PM   #2
Rob
Elite Veteran
SuperMember
 
Rob's Avatar
 

Join Date: Jul 2003
Location: Southern UK
Age: 35
Posts: 3,126
Blog Entries: 7
Thanks: 28
Thanked 22 Times in 19 Posts
Rep Altering Power: 0 Rob is a jewel in the rough Rob is a jewel in the rough Rob is a jewel in the rough
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 - Webforumz Founder
Web Designer Support Network || Personal Project: Sanctuary for Student Midwives
Rob is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Old June 2nd, 2005, 04:21 PM   #3
Reputable Member
 

Join Date: Aug 2003
Location: United Kingdom
Posts: 339
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0 D3mon is on a distinguished road
try tidying up your code:
Code:
<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?
D3mon is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Old June 2nd, 2005, 04:32 PM   #4
Reputable Member
 

Join Date: Aug 2003
Location: United Kingdom
Posts: 339
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0 D3mon is on a distinguished road
With this updated code...
Code:
<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?
D3mon is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Old June 2nd, 2005, 04:40 PM   #5
New Member
 

Join Date: Jun 2005
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0 p_hp_fan is on a distinguished road
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.
p_hp_fan is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Old June 2nd, 2005, 04:42 PM   #6
Reputable Member
 

Join Date: Aug 2003
Location: United Kingdom
Posts: 339
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0 D3mon is on a distinguished road
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.
D3mon is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Old June 2nd, 2005, 04:48 PM   #7
New Member
 

Join Date: Jun 2005
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0 p_hp_fan is on a distinguished road
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.
p_hp_fan is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Old June 2nd, 2005, 04:52 PM   #8
New Member
 

Join Date: Jun 2005
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0 p_hp_fan is on a distinguished road


That's a drawing of what it looks like.
p_hp_fan is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Old June 2nd, 2005, 04:57 PM   #9
New Member
 

Join Date: Jun 2005
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0 p_hp_fan is on a distinguished road


That's firefox and netscape
p_hp_fan is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Old June 3rd, 2005, 12:03 PM   #10
Rob
Elite Veteran
SuperMember
 
Rob's Avatar
 

Join Date: Jul 2003
Location: Southern UK
Age: 35
Posts: 3,126
Blog Entries: 7
Thanks: 28
Thanked 22 Times in 19 Posts
Rep Altering Power: 0 Rob is a jewel in the rough Rob is a jewel in the rough Rob is a jewel in the rough
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 - Webforumz Founder
Web Designer Support Network || Personal Project: Sanctuary for Student Midwives
Rob is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Closed Thread

Bookmarks

Tags
mozilla , netscape


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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 HTML, XHTML and CSS 1 February 8th, 2008 11:46 PM
Footer in Netscape Moonlilly Your Design and Layout 2 April 29th, 2007 05:14 AM
Netscape 6 crashing imagesetting HTML, XHTML and CSS 5 April 3rd, 2007 05:06 AM
DIV alignment in Firefox and Netscape johnmr HTML, XHTML and CSS 1 September 11th, 2006 01:15 PM
Netscape/Mozilla - skinning those scrollbars! gwx03 HTML, XHTML and CSS 15 April 8th, 2004 03:37 PM


Search Engine Optimization by vBSEO 3.2.0 RC8