|
|
 |
October 23rd, 2007, 05:49 AM
|
#1
|
|
Reputable Member
Join Date: Jun 2007
Location: Bellevue, SK, Canada
Age: 30
Posts: 222
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0
|
[SOLVED] MSIE doesn't show my design correctly (what a surprise)
I'm designing a website in html/ css. In Firefox it looks fine, but ofcourse.. MSIE has to mess it up.
Where does it go wrong? I can use an IE conditional, but I don't think setting a negative value for margin is allowed.. right?
compare: http://www.mainevents.nl/preview
Firefox shows the page like it's supposed to look.. in MSIE the logo disappears..
Help? 
|
|
|
October 23rd, 2007, 06:00 AM
|
#2
|
|
Most Reputable Member
Join Date: May 2007
Location: UK
Age: 29
Posts: 1,107
Thanks: 0
Thanked 0 Times in 0 Posts
|
Re: MSIE doesn't show my design correctly (what a surprise)
First, validate your site. You have a gruesome extra ending </div> tag, which can be the cause of random mayhem in browsers.
Second, negative margins are perfectly legitimate. I use them all the time, and not only for IE wrangling.
|
|
|
October 23rd, 2007, 12:47 PM
|
#3
|
|
Elite Veteran
Join Date: Jul 2007
Location: Webforumz 24/7
Age: 17
Posts: 3,799
Thanks: 2
Thanked 3 Times in 3 Posts
|
Re: MSIE doesn't show my design correctly (what a surprise)
You might have to mess around with the padding in IE also, some divs look like they have too much.
|
|
|
October 23rd, 2007, 01:30 PM
|
#4
|
SuperMember
Join Date: Apr 2007
Location: Scotland, UK
Posts: 2,086
Thanks: 2
Thanked 23 Times in 23 Posts
|
Re: MSIE doesn't show my design correctly (what a surprise)
If you cannot get it working just using regular CSS, you might be interested in IE Conditional Comments. This is a good thread: http://www.webforumz.com/html-forum/...i-write-ie.htm.
|
|
|
October 23rd, 2007, 11:22 PM
|
#5
|
|
Most Reputable Member
Join Date: Feb 2004
Location: Borneo
Age: 28
Posts: 1,628
Thanks: 0
Thanked 4 Times in 3 Posts
|
Re: MSIE doesn't show my design correctly (what a surprise)
and of course, you could google for " CSS Layout Technique"
|
|
|
October 24th, 2007, 04:39 PM
|
#6
|
|
Reputable Member
Join Date: Jun 2007
Location: Bellevue, SK, Canada
Age: 30
Posts: 222
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0
|
Re: MSIE doesn't show my design correctly (what a surprise)
Quote:
Originally Posted by Marc
|
I know how a conditional works, but like I said in my first post, I didn't know if the negative values are allowed..
I fixed the </div>-stuff.. It validates now..
So.. I'll try to fix the rest too.. I'll keep you poasted..
|
|
|
October 26th, 2007, 04:16 PM
|
#7
|
|
Reputable Member
Join Date: Jun 2007
Location: Bellevue, SK, Canada
Age: 30
Posts: 222
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0
|
Re: MSIE doesn't show my design correctly (what a surprise)
I fixed it!
I made a conditional for IE. The site seems to show op properly in IE en FF now. I used this:
Code:
<!--[if IE]>
<style type="text/css">
#logo {
margin-top: -62px;
}
</style>
<![endif]-->
thanks for the responses..
Last edited by delusion; October 26th, 2007 at 04:18 PM..
|
|
|
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|