Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

HTML Forum


You are currently viewing our HTML Forum as a guest. Please register to participate.
Login



Post a Project »

Find a Professional HTML Freelancer!

Find a Freelancer to help you with your HTML projects

FREE Outsourcing eBook!

Reply
Strange spacing in internet explorer.
Old 03-14-2006, 11:41 AM Strange spacing in internet explorer. (solved)
Extreme Talker

Posts: 170
Location: Canada
Trades: 0
I've designed a fairly complex layout and it looks fantastic in Firefox. However, in Internet Explorer one of my div's is bumped over 5 or so pixels. You'll be able to see the top left corner pushed in from the left.

You can see the demo page here.

The CSS can be reached here.

The page is coded in XHTML 1.0 Strict, and is 100% valid code. The CSS was also validated as W3C compliant (although there were some warnings).

I've tried everything I can think of to no avail, I'd really appreciate some help.

Thanks!
__________________

Please login or register to view this content. Registration is FREE



Please login or register to view this content. Registration is FREE

Last edited by collyer_1; 03-14-2006 at 03:55 PM..
collyer_1 is offline
Reply With Quote
View Public Profile Visit collyer_1's homepage!
 
 
Register now for full access!
Old 03-14-2006, 12:20 PM Re: Strange spacing in internet explorer.
ADAM Web Design's Avatar
Canadastaninianite

Posts: 5,935
Name: Adam for web page design, not program
Location: Toronto, Ontario, Canada
Trades: 0
I'm not sure, but your non-breaking space may be causing issues. Try taking that out and seeing what would happen.
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
(my blog)


Please login or register to view this content. Registration is FREE
(with proof)
ADAM Web Design is offline
Reply With Quote
View Public Profile Visit ADAM Web Design's homepage!
 
Old 03-14-2006, 12:45 PM Re: Strange spacing in internet explorer.
vangogh's Avatar
Post Impressionist

Latest Blog Post:
Why Responsive Design?
Posts: 10,815
Name: Steven Bradley
Location: Boulder, Colorado
Trades: 0
collyer I'm not seeing the extra space from the left edge in IE. Did you fix it? I am seeing that IE and Firefox are displaying the nvigation differently. In IE the top of the navigation aligns with the top of the main content area while in Firefox the navigation is pushed down some.
__________________
l Search Engine Friendly Web Design |
Please login or register to view this content. Registration is FREE

l Tips On Marketing, SEO, Design, and Development |
Please login or register to view this content. Registration is FREE

l
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
vangogh is offline
Reply With Quote
View Public Profile Visit vangogh's homepage!
 
Old 03-14-2006, 01:05 PM Re: Strange spacing in internet explorer.
Average Talker

Posts: 16
Trades: 0
Quote:
Originally Posted by vangogh
collyer I'm not seeing the extra space from the left edge in IE. Did you fix it? I am seeing that IE and Firefox are displaying the nvigation differently. In IE the top of the navigation aligns with the top of the main content area while in Firefox the navigation is pushed down some.
That's identical to what I'm seeing as well.
Beholdereye is offline
Reply With Quote
View Public Profile
 
Old 03-14-2006, 02:13 PM Re: Strange spacing in internet explorer.
Extreme Talker

Posts: 170
Location: Canada
Trades: 0
Thanks very much, but I havn't changed the coding there at all (so the error has not been fixed on my machine).

I've also noticed that the menu disjoints between firefox and IE. I don't know why because both of their top margins are the same, but it is not a great concern.

I'll try testing it on a few other computers to see what I get, thanks for your feedback.

Edit:

I just tested it on another XP machine and the space is there (in IE only).

Here's a link to a gif of the error in action.
__________________

Please login or register to view this content. Registration is FREE



Please login or register to view this content. Registration is FREE

Last edited by collyer_1; 03-14-2006 at 02:20 PM..
collyer_1 is offline
Reply With Quote
View Public Profile Visit collyer_1's homepage!
 
Old 03-14-2006, 03:23 PM Re: Strange spacing in internet explorer.
Average Talker

Posts: 16
Trades: 0
try floating both divs to the left. that way, with no margin, they should butt right up against one another.
Beholdereye is offline
Reply With Quote
View Public Profile
 
Old 03-14-2006, 03:38 PM Re: Strange spacing in internet explorer.
Extreme Talker

Posts: 170
Location: Canada
Trades: 0
Beholdereye you were so close. I floated it left, and it solved the space issue in IE. However, if wrecked the layout. For some reason, floating it left pushed the "body" div (the div that originally had the error) below the nav div in Firefox.

I'm trying some absolute position things as I write this, but what do you all think would be the best approach?

Edit:

Problem Solved!!

I positioned the body div absolutely and it positions iteself properly in both browsers. The little gap has been repaired by floating all the internal div's to the left.

I'm going to run my code by the W3C validator, then I'm off to the races.

Thanks very much for everyones help.

Vangogh and BeholderEye: I'd give you talkupation but it's telling me I need to "spread it around" I apparently really like your posts
__________________

Please login or register to view this content. Registration is FREE



Please login or register to view this content. Registration is FREE

Last edited by collyer_1; 03-14-2006 at 03:44 PM..
collyer_1 is offline
Reply With Quote
View Public Profile Visit collyer_1's homepage!
 
Old 03-14-2006, 03:44 PM Re: Strange spacing in internet explorer.
Average Talker

Posts: 16
Trades: 0
oh sorry about that, I forgot you were using definate pixels. I use percentages, that way they will expand and shrink given the different resolutions. This may be a viable option for you. I find that the best way to do this is to design it for 800x600 and then tweak it for 1024x768 (the most used). Generally the percentages rather than pixel definitions will help a great deal.
Beholdereye is offline
Reply With Quote
View Public Profile
 
Old 03-14-2006, 03:46 PM Re: Strange spacing in internet explorer.
Extreme Talker

Posts: 170
Location: Canada
Trades: 0
I usually use scalability, but I defined the width of the menu for the purposes of making the layout work first. I'm going to change it now actually.

Also: The floating and positioning inadvertantly repaired the menu disjointing itself from the body div.


In conclusion:

All errors are fixed, everything has just been modified for scalability. The original link has been modified so that it now contains the fully repaired and scalable page.

You can continue to check the link over time because I'll be modifying the layout to include new and exciting things.

Thanks Again!
__________________

Please login or register to view this content. Registration is FREE



Please login or register to view this content. Registration is FREE

Last edited by collyer_1; 03-14-2006 at 03:56 PM..
collyer_1 is offline
Reply With Quote
View Public Profile Visit collyer_1's homepage!
 
Old 03-17-2006, 12:04 AM Re: Strange spacing in internet explorer.
Super Talker

Posts: 102
Trades: 0
A lot of times when I am having this exact issue it can be fixed with a simple

img {
display: block;
}

in the css
__________________

Please login or register to view this content. Registration is FREE

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE
3pointRoss is offline
Reply With Quote
View Public Profile Visit 3pointRoss's homepage!
 
Reply     « Reply to Strange spacing in internet explorer.
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.77572 seconds with 12 queries