WebProWorld Part of WebProNews.com
Page One Link To Us Edit Profile Private Messages Archives FAQ RSS Feeds  
 

Go Back   WebProWorld > Site Design > Graphics & Design Discussion Forum
Subscribe to the Newsletter FREE!


Register FAQ Members List Calendar Arcade Chatbox Mark Forums Read

Graphics & Design Discussion Forum Post your graphics design questions/comments/ideas in here. Ask questions, post tutorials, discuss trends and best practices. Sub-forum for website accessibility and usability.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 10-09-2007, 07:53 AM
chandrika's Avatar
WebProWorld Veteran
 

Join Date: Oct 2005
Location: Cambridge, UK
Posts: 374
chandrika RepRank 1
Default IE7 CSS overflow:hidden??

I have just redone the css for the price comparison site in my sig at bottom of this post. I have run into one problem in IE7 which I am not sure what is causing it or if there is a way to fix it.

To make the columns equal height I have used
/*** Equal-height Columns ***/

#container {
overflow: hidden;
}
#container .column {
padding-bottom: 20010px; /* X + padding-bottom */
margin-bottom: -20000px; /* X */
}
#footer {
position: relative;
}

And put the footer in a wrapper
/*** Footer Fix ***/

* html body {
overflow: hidden;
}
* html #footer-wrapper {
float: left;
position: relative;
width: 100%;
padding-bottom: 10010px;
margin-bottom: -10000px;
background: #ffffff;
}


Everyhing works fine except in IE7 I am getting this problem where the overflow is visible below the footer making the page really long and wondered if there is any fix for this that anyone knows of?
__________________
Hairstyles - Pictures of 2008 hairstyles and a virtual hairstyler demo.
Price Comparison Site - Compare prices of well known brands and products.
Reply With Quote
  #2 (permalink)  
Old 10-09-2007, 04:24 PM
chandrika's Avatar
WebProWorld Veteran
 

Join Date: Oct 2005
Location: Cambridge, UK
Posts: 374
chandrika RepRank 1
Smile Re: IE7 CSS overflow...FIXED

Was fixed it with following css
#container {
overflow: hidden;
position: relative; /* fix to 'IE7 10000px padding-bottom spill over footer' problem */
padding-left: 180px; /* LC fullwidth */
padding-right: 180px; /* RC fullwidth + CC padding */
}

And am really happy, as it has taken me ages to find a layout working across all browsers, with center column liquid, sides fixed, all columns equal length, center column coming first in code, also with a header & footer.

For anyone interested in a similar layout, which is really handy for SEO it is at
A List Apart: Articles: In Search of the Holy Grail

That doesnt quite work in IE7, but there are more fixes at
The Holy Grail CSS Layout Fix for IE7

Which appears to cover pretty much everything and get this layout working everywhere.

Its such a neat layout, until I found this, I could only find equal column heights that had percentage widths or all fixed widths, and I wanted my side columns fixed width and only center column liquid and coming first in code. So this has solved that and i am happy
__________________
Hairstyles - Pictures of 2008 hairstyles and a virtual hairstyler demo.
Price Comparison Site - Compare prices of well known brands and products.
Reply With Quote
  #3 (permalink)  
Old 11-15-2007, 08:10 AM
WDC's Avatar
WDC WDC is offline
WebProWorld Pro
 

Join Date: Nov 2007
Location: India
Posts: 153
WDC RepRank -1
Default Re: IE7 CSS overflow:hidden??

Thanks for the link.

THere is always some probelm with IE nad FF. Sites are displayed well in one and have some layotu problem in other.

e.g take tables : if oyur are usign tabel inside tavle it will be displayed fine in IE but have som display prb wih FF with tables overlapiinf ach oither ...

You have to recheck and fix it
Reply With Quote
  #4 (permalink)  
Old 11-15-2007, 09:38 AM
chandrika's Avatar
WebProWorld Veteran
 

Join Date: Oct 2005
Location: Cambridge, UK
Posts: 374
chandrika RepRank 1
Default Re: IE7 CSS overflow:hidden??

Timely advice, I just checked what I am currently working on in IE and it was all mashed up due to having put a table in a table, so thanks for your post as it prompted me to do a quick browser check of what I was doing and fix what was an unspotted bodge.
__________________
Hairstyles - Pictures of 2008 hairstyles and a virtual hairstyler demo.
Price Comparison Site - Compare prices of well known brands and products.
Reply With Quote
  #5 (permalink)  
Old 11-18-2007, 09:07 PM
WebProWorld Pro
 

Join Date: Oct 2003
Location: Alberta, Canada
Posts: 222
weegillis RepRank 1
Default Re: IE7 CSS overflow:hidden??

The reason your original approach didn't work might boil down to the attempt to isolate IE with the * html hack, since the more compliant IE7 now correctly sees HTML as the root element.

Position Is Everything article from 2005:
CSS Hacks and IE7
__________________
Volunteer for something in your community today!

Last edited by weegillis : 11-18-2007 at 09:09 PM. Reason: Added link.
Reply With Quote
Reply

  WebProWorld > Site Design > Graphics & Design Discussion Forum
Tags: , ,



Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB 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
hidden file help picklemind Internet Security Discussion Forum 5 06-02-2006 03:19 PM
my overflow div gets messed up with mice scrollwheels? help! technica Graphics & Design Discussion Forum 10 04-15-2006 09:39 PM
Weakness in Windows XP SP2 Overflow Protection WPW_Feedbot IT Discussion Forum 0 01-31-2005 10:01 PM
MS Access "Numeric Field Overflow" Error richkoi Database Discussion Forum 1 01-13-2005 06:41 PM
Overflow problem drummin Graphics & Design Discussion Forum 0 08-31-2004 03:04 AM


Search Engine Optimization by vBSEO 3.2.0