amid Posted October 26, 2007 Share Posted October 26, 2007 Hello everyone.I have some problem with CSS style right and left in ie. It is works goods in firefox and opera but not not in IE.I have also tried margin-s but it haven't any results in IE.Here the sample code:....<style type="text/css"> .bordered{border:1px solid #000000; }.bigdiv{ position:absolute;left:0;margin-left:100px;margin-right:100px;right:0px; }.positioned{ position:absolute;width:500px;height:50px; }</style>....<div class="bordered positioned"> <div class="bordered bigdiv">test </div></div>... Link to comment Share on other sites More sharing options...
jlhaslip Posted October 26, 2007 Share Posted October 26, 2007 http://www.jlhaslip.trap17.com/samples/mis...ns/centred.htmlyou are better off not using position absoluteeasier on your brain Link to comment Share on other sites More sharing options...
amid Posted October 29, 2007 Author Share Posted October 29, 2007 http://www.jlhaslip.trap17.com/samples/mis...ns/centred.htmlyou are better off not using position absoluteeasier on your brainThanks. IE works fine with float, margins, left:0,width:100% and margins but nor in firefox. Maybe, I have to use more then one CSS file and brother will have own CSS.Is it any way to do verticaly(top & left). Also, I havn't find float:top.P.s> I forgot to say that width of parent tag(DIV) isn't static. Link to comment Share on other sites More sharing options...
jlhaslip Posted October 29, 2007 Share Posted October 29, 2007 IE6 (I think) will also *may* have trouble with using 2 classes on the div's Can you alter the class rules and combine them?http://www.quirksmode.org/bugreports/archi...classnames.html Link to comment Share on other sites More sharing options...
amid Posted October 30, 2007 Author Share Posted October 30, 2007 It is all right.IE works correctly with multy classes.I have checked it. Link to comment Share on other sites More sharing options...
jlhaslip Posted October 30, 2007 Share Posted October 30, 2007 see quirksmode.com.ie6 and lower is an issue with multiple classes Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.