Robert
Robert

Reputation: 2691

Position:relative doesn't work in IE

I have table in div and in table is class .tabela which looks like this:

.tabela { position:relative; top:0px; margin-left:10px; background-color:black;}
.tabela td{ position:relative; top:0px;} 

In Mozilla and Opera table is on top but in IE isn't, I have read that is bug in IE, but there is any solution to set table on top in IE ? Maybe with javascript when page has been loaded ?

<div class="top">
<table class="tabela">
<tr><td>

Thanks

Upvotes: 1

Views: 3725

Answers (1)

Eric Witchin
Eric Witchin

Reputation: 574

You can try this. This is untested and may not work, but worth a try.

.top{position:relative;}
.tabela{position:absolute;top:0px;margin-left:10px;background-color:black;}

I hope it helps you out.

Upvotes: 2

Related Questions