Manish Pansiniya's Blog

.NET, C#, Javascript, ASP.NET and lots more…:)

Style.Display what should i use block or table-cell

leave a comment »

Currently I am implementing the IFRAME in my one of the project. When I use block and render it in Internet explorer, it works fine and show me IFRAME at desired position. But in Mozilla it renders it in the middle of the screen at arbitrary position.

As I am not setting it’s position, Mozilla took the position from somewhere( dont know from where 😦 ) and display it in middle of the screen which i do not want.

I googled and found out the table-cell attribute for display property of style. When I set that property, it works fine in the Mozilla but IE5/6 do not support that.

So I decided to go with block in IE and table-cell in mozilla. Why the hell this type of problem arising, why IE not supporting table-cell. 😦


Written by Manish

January 1, 2007 at 11:58 am

Posted in Uncategorized

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: