Today's Posts Follow Us On Twitter! TFL Members on Twitter  
Forum search: Advanced Search  
Navigation
Marketplace
  Members Login:
Lost password?
  Forum Statistics:
Forum Members: 24,254
Total Threads: 80,792
Total Posts: 566,472
There are 1440 users currently browsing (tf).
 
  Our Partners:
 
  TalkFreelance     Design and Development     HTML/XHTML/DHTML/CSS :

What does this look so bad in IE?

Thread title: What does this look so bad in IE?
Closed Thread    
    Thread tools Search this thread Display Modes  
05-13-2006, 09:17 PM
#1
Jamie is offline Jamie
Jamie's Avatar
Status: I love this place
Join date: Jan 2006
Location:
Expertise:
Software:
 
Posts: 513
iTrader: 0 / 0%
 

Jamie is on a distinguished road

  Old  What does this look so bad in IE?

Hey, the template i'm coding for Imgflow is being a real *****, It looks perfect in Firefox and Opera, but like horriable in Internet Explorer.

Look At it in Firefox and then in IE:

www.nuiro.com/imgflow/

and heres the CSS Frame work

www.nuiro.com/imgflow/assets/css/global.css


Another know what's wrong and / or how to fix it.

Thanks

Best Regards,
Jamie

05-13-2006, 09:21 PM
#2
northpark is offline northpark
northpark's Avatar
Status: I'm Spamming
Join date: Sep 2005
Location: Americawww
Expertise:
Software:
 
Posts: 3,963
iTrader: 0 / 0%
 

northpark is on a distinguished road

Send a message via MSN to northpark

  Old

you could lose expandability and use sbsolute positioning.

05-13-2006, 10:41 PM
#3
Magnus is offline Magnus
Magnus's Avatar
Status: Member
Join date: Mar 2005
Location:
Expertise:
Software:
 
Posts: 222
iTrader: 0 / 0%
 

Magnus is on a distinguished road

  Old

thats probrally not a good idea. looks like a padding issue but you never know in IE :S

freenode channel #css, those guys are gurus, they usually know all about IE's rendering quirks.

05-13-2006, 11:02 PM
#4
jjmac is offline jjmac
jjmac's Avatar
Status: Member
Join date: May 2006
Location:
Expertise:
Software:
 
Posts: 197
iTrader: 0 / 0%
 

jjmac is on a distinguished road

  Old

I wouldn't use transitional doctype as IE has a lot of quirks in this mode (which is why its called quirks mode). Try a strict html 4.0 or xhtml 1.0 doctype instead.

THe other main problem you're having is you're not taking into account the different way IE determinds margin and padding from firefox and other compliant browsers.

IE thinks that padding width should be determined by TOTAL WIDTH = DIV WIDTH + LEFT PADDING + RIGHT PADDING

While FF and other compatibles think it should be TOTAL WIDTH = (DIV WIDTH - LEFT PADDING - RIGHT PADDING) + LEFT PADDING + RIGHT PADDING

In other words if you have a 500px wide div and a padding of 10px, firefox makes sure the width of the div plus the padding is 500px while IE takes the padding and adds it to 500 giving you a total width of 510px;

Most of the time, I nest make a div with no margin and padding and only a width for design elements. Then I will make nested div's to contain different content. This helps deal with this problem.

I also notice you're using spacer divs in your code in the menu links. The propper way would be to use a UL/LI list and style the LI's to include whatever images/space you want. CSS was invented with eliminating spacer elements in mind.

I would also make sure your menu ID's are explicitedly receiving a margin and padding, even if it's 0. I would do this at least for a test. Because IE (and firefox) refuse to let some elements inherit a padding or margin of 0 (UL/LI being one of these). SO you have to be careful that you don't have something nested inside another element that does not inherit. The cascading element of CSS is absolutely wonderful, however it does take some tweaking and getting used to.

I have not fully examined your code so I don't know what the problem is exactly I just wanted to give you some common errors that cause these types of problems. My bet is that your padding/margins on the menu elements are out of whack. Change them up and see how it affects your document for some testing.

05-14-2006, 12:36 AM
#5
Jordan Street is offline Jordan Street
Status: Member
Join date: Dec 2005
Location: Tampa Fl
Expertise:
Software:
 
Posts: 214
iTrader: 0 / 0%
 

Jordan Street is on a distinguished road

Send a message via AIM to Jordan Street Send a message via MSN to Jordan Street

  Old

looks fine in IE7

05-14-2006, 09:36 AM
#6
Bas is offline Bas
Status: I love this place
Join date: Jan 2005
Location: The Netherlands
Expertise: Frontend, vBulletin
Software: Coda, Photoshop
 
Posts: 607
iTrader: -1 / 0%
 

Bas is on a distinguished road

Send a message via MSN to Bas

  Old

You've used divs around your menu buttons and you let them float to the left.
As jjmac said, you should use a list for it.

Closed Thread    


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

  Posting Rules  
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump:
 
  Contains New Posts Forum Contains New Posts   Contains No New Posts Forum Contains No New Posts   A Closed Forum Forum is Closed