Log In · Register

 
making DIV, thats works for FF & IE
themusicworld205...
post Jun 2 2008, 10:16 PM
Post #1


Senior Member
***

Group: Member
Posts: 81
Joined: Jun 2007
Member No: 530,057



how can i make a DIV that works the same in internet explorer and in firefox
cause i have been having A LOT of problems that my profile looks good in firefox but sux in internet explorer

these are examples which is better for the both browsers?

or give your examples

CODE
<style>
.div1 {
background-color:000000; color:000000;
border:0px solid; border-color:silver;
width:400px; height:100px; overflow:auto;
position:absolute; z-index:2; left:50%; top:0%;
margin-left:-250px; margin-top:150px;
visibility:visible;}
</style>


<div class="div1">
content
</div>


or

CODE
<div style="position: absolute; overflow:hidden; left:50%; margin-left:125px; _margin-top: 415px; margin-top: 415px; top: 50%px; width: 225px; height: 150px; background-color:CF0000;">
CONTENT
</div>


HELP i been trying to solve this since along time !!!
 
 
Start new topic
Replies
Smarmosaur
post Jun 3 2008, 02:34 PM
Post #2


AKA RockIt Studios
******

Group: Official Member
Posts: 2,286
Joined: Jun 2006
Member No: 421,809



yep, that's exactly how you do it.
that solution works on nearly anything, not just positioning, like height, width, background color, background position, etc...
you name it, it most likely works. :]
 

Posts in this topic


Closed TopicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members: