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.

CSS Forum


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



Reply
CSS problem with different browsers
Old 01-02-2009, 09:29 PM CSS problem with different browsers
Junior Talker

Posts: 3
Trades: 0
Hi,

I have some problem with CSS in my customized e107 theme.
I've tried a lot of things but I can't fix this.

My site is: http://klar abutorhaz.hu

In Firefox everithing is okay, but in IE(6) on the homepage the div-s positions aren't good, and if you check the "Contact" page, it is totally badly-positioned. They both use the same css so I can't figure it out.
I also have tried to set back the original theme, but it has this 'bug' too.

Please help me if you have some time to check my files! What should I change?

Thank you,
CollisDam

Last edited by CollisDam; 01-03-2009 at 02:08 PM.. Reason: edited visible url (not the real href) because of google page ranking (lol)
CollisDam is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 01-03-2009, 08:15 AM Re: CSS problem with different browsers
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,371
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
lose the <?xml version='1.0' encoding='iso-8859-2' ?> before the DTD. It "breaks" the doctype for IE
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 01-03-2009, 08:26 AM Re: CSS problem with different browsers
Average Talker

Posts: 16
Trades: 0
Internet Explorer is, has been, and will always be a pain in the...
ThemeFreak is offline
Reply With Quote
View Public Profile
 
Old 01-03-2009, 02:02 PM Re: CSS problem with different browsers
Junior Talker

Posts: 3
Trades: 0
Quote:
Originally Posted by chrishirst View Post
lose the <?xml version='1.0' encoding='iso-8859-2' ?> before the DTD. It "breaks" the doctype for IE
Thanks for the reply chris. I've removed that xml thing but it doesn't solve my problem. Nothing has changed. You can check my page. It's really annoying in IE. I can't get rid of it.

If you (or anybody) can, please download the contact.php with FF like a full site, so you can edit it offline. If you find the error please tell me what is it. I think I've already tried my best but it's not enought.

Thanks,
CollisDam
CollisDam is offline
Reply With Quote
View Public Profile
 
Old 01-03-2009, 05:37 PM Re: CSS problem with different browsers
LadynRed's Avatar
Defies a Status

Posts: 10,017
Location: Tennessee
Trades: 0
In IE6 you are triggering the doubled-float margin bug by putting a right margin on a right-floated div (and the same will happen for left floats with left margins). IE6 incorrectly DOUBLES the margin.

You're going to need to use conditional comments to call a separate css 'fixes' file to make IE6 work right. Add display:inline to #sidebar to fix that problem.

You will have to do the same thing for #content since you have the same bug, add display:inline to it.
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

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


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

LadynRed is offline
Reply With Quote
View Public Profile
 
Old 01-03-2009, 05:48 PM Re: CSS problem with different browsers
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,371
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
that's just "float drop"

Your widths don't add up. IE adds the margins, padding and borders to the widths then decides there isn't enough space so it pushes the later elements below it's floated predecessors

sidebar 180 + 10(padding) + 20(margin) + 2(border) = 202
content 500 + 10 + 10 + 2 = 522

PLUS the double floated margin bug extras on both, means that is all adds up to more than 750px
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 01-03-2009, 05:50 PM Re: CSS problem with different browsers
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,371
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
LnR can type quicker than I can
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 01-03-2009, 10:19 PM Re: CSS problem with different browsers
LadynRed's Avatar
Defies a Status

Posts: 10,017
Location: Tennessee
Trades: 0
lol... I'm also very familiar with that particular IE bug.
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

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


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

LadynRed is offline
Reply With Quote
View Public Profile
 
Old 01-03-2009, 11:29 PM Re: CSS problem with different browsers
stevej's Avatar
Professional Multitasker

Posts: 996
Location: Not positive
Trades: 0
Wow, thanks LadynRed and Chris! Once I had that same problem and I did not have any idea what to do. Thanks again!

- Steve
stevej is offline
Reply With Quote
View Public Profile
 
Old 01-04-2009, 10:30 AM Re: CSS problem with different browsers
Junior Talker

Posts: 3
Trades: 0
The display:inline; solved the problem!
D@mn IE6!

Thank you guys, I'm really happy with this now!
I wouldn't have been able to solve it without you (i hope you understand it, i haven't got a 100% english )

So thanks again, and have a nice day!

CollisDam
CollisDam is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to CSS problem with different browsers
 

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.39346 seconds with 12 queries