Tuesday, November 08, 2005

IE5 css random content jump

A CSS design using nested floated divs may result in content jumping vertically in IE5.

It's a highly random behaviour, sometimes the content will look fine, sometimes the content will jump waaaay down the page.

If you are experiencing this, try changing the innermost div's css from:
float:left/right; to float:inherit;

If it works, please leave a comment to let me know!
Also, if you happen to know WHY this is, please leave a comment!

Thanks!

4 Comments:

Anonymous Anonymous said...

When does it jump? Is it on hovering over links. or at page load? Are you using clear:all somewhere on the page? Are you using % widths or ems? If so try leaving some free space between them. Mail me if you want more help with it, I don't visit here all that regularly :)

12:59 PM  
Blogger frankp said...

thanks hostyle... I'll probably be in touch alright!

1:02 PM  
Blogger frankp said...

ps - it jumps on page load. And mostly pixel-perfect type layouts I think. I'll get back to you on the clear:all!

1:03 PM  
Anonymous Anonymous said...

Thank you so much!

I've been having this problem for months with various websites and using inherit for the right hand column along with a large margin to clear the left column has resolved the random jumping around.

Your my saviour!
Thanks!

Previous:

#menu {
float: left;
width: 200px;
}
#content {
float: left;
}

Now:

#menu {
float: left;
width: 200px;

}
#content {
padding-left: 230px;
float: inherit;
}

12:03 PM  

Post a Comment

Subscribe to Post Comments [Atom]

<< Home