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

Reply
 
LinkBack Thread Tools
Old 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 delusion is on a distinguished road
[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?
delusion is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old 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
Rep Altering Power: 0 MikeHopley is just really nice MikeHopley is just really nice MikeHopley is just really nice MikeHopley is just really nice MikeHopley is just really nice
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.
MikeHopley is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old October 23rd, 2007, 12:47 PM   #3
Elite Veteran
 

Join Date: Jul 2007
Location: Webforumz 24/7
Age: 17
Posts: 3,799
Blog Entries: 9
Thanks: 2
Thanked 3 Times in 3 Posts
Rep Altering Power: 0 alexgeek is a name known to all alexgeek is a name known to all alexgeek is a name known to all alexgeek is a name known to all alexgeek is a name known to all alexgeek is a name known to all
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.
__________________
Web Design and Development Blog

Alex Perry
Technical Administrator.
alexgeek is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old October 23rd, 2007, 01:30 PM   #4
WebForumz Admin Badge
SuperMember
 
Marc's Avatar
 

Join Date: Apr 2007
Location: Scotland, UK
Posts: 2,086
Thanks: 2
Thanked 23 Times in 23 Posts
Rep Altering Power: 89 Marc is just really nice Marc is just really nice Marc is just really nice Marc is just really nice
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.
__________________
Regards
Marc
Administrator - Webforumz.com

Web Design and Development Blog - Marc Fraser
Marc is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old October 23rd, 2007, 11:22 PM   #5
Most Reputable Member
 

Join Date: Feb 2004
Location: Borneo
Age: 28
Posts: 1,628
Blog Entries: 2
Thanks: 0
Thanked 4 Times in 3 Posts
Rep Altering Power: 0 Monie is a jewel in the rough Monie is a jewel in the rough Monie is a jewel in the rough Monie is a jewel in the rough
Re: MSIE doesn't show my design correctly (what a surprise)

and of course, you could google for "CSS Layout Technique"
Monie is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old 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 delusion is on a distinguished road
Re: MSIE doesn't show my design correctly (what a surprise)

Quote:
Originally Posted by Marc View Post
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.

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..
delusion is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old 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 delusion is on a distinguished road
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..
delusion is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Bookmarks


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
[SOLVED] Show Search Terms? Jack Franklin PHP 12 January 15th, 2008 03:09 AM
[SOLVED] IE6 is not rendering my columns correctly Oak HTML, XHTML and CSS 26 January 13th, 2008 06:12 PM
wierdness in IE (surprise, surprise) mykl HTML, XHTML and CSS 8 November 10th, 2007 05:30 PM
[SOLVED] Show&amp;Hide Div Box Maska JavaScript 6 October 1st, 2007 07:04 AM
Need Flash help (surprise surprise!) njenkins Flash and ActionScript 1 December 1st, 2004 02:26 PM


Search Engine Optimization by vBSEO 3.2.0 RC8