Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problem rendering in IE7 3

Status
Not open for further replies.

LonnieJohnson

Programmer
Apr 16, 2001
2,628
US
You don't seem to be dealing with content that doesn't fit in the div , your code is not layed out very nice, so having a aquick look I think it's this line..

Code:
#right_content {font-family:tahoma;font-size:9pt;width:530px;background:url(/images/corner.jpg) left top no-repeat;padding:0;margin:0;float:right;text-align:left;[b]overflow:auto;[/b]}

Try adding the overflow:auto; to it as shown


"In complete darkness we are all the same, only our knowledge and wisdom separates us, don't let your eyes deceive you."

"If a shortcut was meant to be easy, it wouldn't be a shortcut, it would be the way!
 
Your problem is as follows. You limit your #content height to 350px. Why? I don't know. So, every browser should obey that height (except for IE6, but that is not the issue here). And every browser should render the page just like IE7 does. However, you seem to try reversing this effect by making the display value of #content be table. Here's the core problem. Tables by default will expand to fit the content (and successfully ignore the height). This is what happens in FF. But IE does not support display table so it reverts it back to block. And block is displayed correctly there.

Your case seems to be fixing one problem by introducing another, more severe one. I would replace the height with min-height and remove the display: table;. That should make it work in IE7 and all modern browsers. You can hack in height to make it work in IE6 as well.

___________________________________________________________
[small]Do something about world cancer today: PACT[/small]
 
I see what your saying now vragabond, having looked at it in FF.

I assumed, probably wrongly that they wanted the height to be fixed, and thus suggested adding the scroll bars for the overflow.

Good job as usual! have a star.

"In complete darkness we are all the same, only our knowledge and wisdom separates us, don't let your eyes deceive you."

"If a shortcut was meant to be easy, it wouldn't be a shortcut, it would be the way!
 
Mr Vragabond,

You are a king. I am not much on html. I do asp.net programming which is a lot of dropping and dragging of the presentation. I am more into the visual basic code.

Thanks a bunch.

ProDev, MS Access Applications
Visit me at ==>
May God bless you beyond your imagination!!!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top