Browser compatibility issue

This is a discussion on "Browser compatibility issue" within the Web Page Design section. This forum, and the thread "Browser compatibility issue are both part of the Design Your Website category.


 Subscribe in a reader

Go Back   Webforumz.com > Main Forums > Design Your Website > Web Page Design

Notices




Reply
 
LinkBack Thread Tools
  #1  
Old Sep 1st, 2006, 13:52
New Member
Join Date: Sep 2006
Location: UK
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Browser compatibility issue

Hi all,

I am having a spot of bother with a design that I've created it works fine in Firefox but is all screwed in IE6.

It can be viewed here. The problem that I have is that the left hand div (the grey one) extends as I want it to in firefox but stays underneath the left div in IE.

I like to think that I am fairly okay with CSS but this issue has obviously proved that I'm not, so any help would be greatly appreciated.

Thanks in advance...

Womble
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote

  #2  
Old Sep 1st, 2006, 14:07
minute44's Avatar
Most Reputable Member

SuperMember
Join Date: Apr 2006
Location: Nottingham UK
Age: 25
Posts: 1,351
Blog Entries: 1
Thanks: 0
Thanked 1 Time in 1 Post
Re: Browser compatibility issue

Right. I've seen this behaviour before! I'm not 100% sure on what to do to solve it but hopefully I can point you in the right direction.

The problem is with your various Floats. Sometimes I find IE goes bat-sh*t when you ask it to handle two divs side by side. It pushes one below. I have a similar problem on my own site where I have little floating images in a block of text. FF handles them beautifully but IE acts a damn fool! I'll watch this thread to see if a solution arrises.
Last Blog Entry: Annoying people.... (Jan 16th, 2008)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3  
Old Sep 1st, 2006, 14:09
New Member
Join Date: Sep 2006
Location: UK
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Browser compatibility issue

Cool thanks. I have a feeling it was float related, it's reassuring to know that I am not a complete dumb ass and missed something obvious.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #4  
Old Sep 1st, 2006, 14:25
Elite Veteran
Join Date: Aug 2005
Location: That Place
Posts: 2,044
Blog Entries: 1
Thanks: 0
Thanked 37 Times in 37 Posts
Re: Browser compatibility issue

Not sure but I would remove clear:right; from the left column and give the right column a left margin equal to or greater than the width of the left column. Also you could try floating the right column right and placing its HTML above the left columns html.
__________________

Last Blog Entry: Apps every Mac based web dev should consider (Jul 10th, 2008)

Last edited by moojoo; Sep 1st, 2006 at 14:31.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #5  
Old Sep 1st, 2006, 20:32
Most Reputable Member
Join Date: Apr 2006
Location: Cornwall, UK
Posts: 1,310
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Browser compatibility issue

There are a number of issues that you need to address in your css and your html structure.

First, re-sequence these divs into the sequence given:

#div_rightborder
#div_right
#div_menu
#div_left

Float the first two right.

Remove the float from #div_menu and the clear: right from #div_left. If you have set their widths correctly, they should pfloat up into the space left on the left hand side.

Do these first and then lets see what you have.


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #6  
Old Sep 4th, 2006, 19:59
New Member
Join Date: Sep 2006
Location: UK
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Browser compatibility issue

Okay, thanks for all your help, I have made these changes and it's almost there. The page now renders fine in IE but the right columun appears to far to the right in FF. It appears to be aligning to the right of the content div in FF and butt up to the right border div in IE!!!

If I make the right margin of the right div equal to the width of the right border div then it looks fine in FF but wrong in IE as it leaves a gap at the right hand side.

heres the url again

http://www.angel-cakes.net/designs/

I am begining to wonder whether I would have been better not using floats... Any suggestions?

Cheers
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #7  
Old Sep 6th, 2006, 13:58
Elite Veteran
Join Date: Aug 2005
Location: That Place
Posts: 2,044
Blog Entries: 1
Thanks: 0
Thanked 37 Times in 37 Posts
Re: Browser compatibility issue

Maybe this will help you towards a solution. Just whipped it up and it works in FF and IE. The CSS is in the HTML and everything is commented so you can see where it is. Not quite the same as your layout but the same basic principles.

Sample Link


Code: Select all
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
<!--[if lte IE 6]>
<style type="text/css">
#rightcolumn {
    float:right;
    width:340px;
    padding:5px;
    margin:18px 0 0 0;
    }
</style>
<![endif]-->
    <title>Basic Layout</title>
    <style type="text/css">
    body {
    padding:0;
    margin:0;
    }
    
    .clearing {
    height:1px;
    clear:both;
    }
    
    #container {
    width:700px;
    margin:12px auto 12px auto;
    border:solid #CCCCCC;
    border-width:1px;
    }
    
    #masthead {
    padding:8px;
    border-bottom:1px solid #CCCCCC;
    text-align:center;
    }
    
    #leftcolumn {
    padding:5px;
    margin:0 350px 0 0;
    border-right:1px solid #CCCCCC;
    }
    
    #rightcolumn {
    float:right;
    width:340px;
    padding:5px;
    }
    
    #footer {
    text-align:center;
    font-weight:bold;
    padding:4px;
    border-top:1px solid #CCCCCC;
    }
    </style>
</head>
<body>
<!-- begin #container -->
<div id="container">
<!-- begin #masthead -->
<div id="masthead">
<h1>Masthead</h1>
</div>
<!-- end #masthead -->
<!-- begin #rightcolumn -->
<div id="rightcolumn">
<h3>This is the right column</h3>
<p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Suspendisse augue enim, tempor vitae, aliquam et, vulputate ut, nunc. Pellentesque id metus id odio pellentesque viverra. Integer tempus nunc eu ligula. Pellentesque dolor quam, consectetuer in, sollicitudin vitae, feugiat quis, magna. Nullam condimentum. Nam eu nisl in nisi aliquet vehicula. Fusce faucibus iaculis diam. Nulla sapien nulla, elementum sed, rutrum eu, bibendum ut, ligula. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; In hac habitasse platea dictumst. Proin sagittis ligula non ante volutpat suscipit. Praesent pede turpis, dictum eget, suscipit pulvinar, vehicula non, mi. Donec massa ligula, eleifend et, suscipit non, consequat nec, nibh. In hac habitasse platea dictumst. Sed fringilla, sapien sit amet imperdiet mollis, nibh odio vulputate mauris, id faucibus nisi erat quis felis. Maecenas ultrices tortor non lacus. Nullam eu diam tristique est pretium eleifend. Nunc dignissim nibh vitae arcu. Duis vestibulum orci id sem.</p>
</div>
<!-- end #rightcolumn -->
<!-- begin #leftcolumn -->
<div id="leftcolumn">
<h3>This is the left column</h3>
<p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Suspendisse augue enim, tempor vitae, aliquam et, vulputate ut, nunc. Pellentesque id metus id odio pellentesque viverra. Integer tempus nunc eu ligula. Pellentesque dolor quam, consectetuer in, sollicitudin vitae, feugiat quis, magna. Nullam condimentum. Nam eu nisl in nisi aliquet vehicula. Fusce faucibus iaculis diam. Nulla sapien nulla, elementum sed, rutrum eu, bibendum ut, ligula. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; In hac habitasse platea dictumst. Proin sagittis ligula non ante volutpat suscipit. Praesent pede turpis, dictum eget, suscipit pulvinar, vehicula non, mi. Donec massa ligula, eleifend et, suscipit non, consequat nec, nibh. In hac habitasse platea dictumst. Sed fringilla, sapien sit amet imperdiet mollis, nibh odio vulputate mauris, id faucibus nisi erat quis felis. Maecenas ultrices tortor non lacus. Nullam eu diam tristique est pretium eleifend. Nunc dignissim nibh vitae arcu. Duis vestibulum orci id sem.</p>
</div>
<!-- end #leftcolumn -->
<!-- begin #footer -->
<div id="footer">
<p>Footer</p>
</div>
<!-- end #footer -->
</div>
<!-- end #container -->
</body>
</html>
__________________

Last Blog Entry: Apps every Mac based web dev should consider (Jul 10th, 2008)

Last edited by moojoo; Sep 6th, 2006 at 14:03.
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

Tags
browser, compatibility, issue

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
Browser Compatibility Problem (Major) Hyroz Web Page Design 3 Feb 29th, 2008 11:27
Browser compatibility issues Craigj1303 Web Page Design 3 Feb 4th, 2008 09:28
PC browser compatibility aaronh Starting Out 2 Sep 21st, 2007 01:10
AOL Browser Compatibility hortondr Web Page Design 6 Apr 4th, 2007 22:25
Browser compatibility Alsilver Web Page Design 11 Oct 19th, 2006 20:18


All times are GMT. The time now is 08:17.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42