У меня проблемы с вложенными div в Chrome и IE, тогда как в Firefox все работает нормально.
У меня есть два атрибута стиля (text-indent и margin-top), установленные во внешнем div.Стиль «показа» внутреннего div установлен на block.Таким образом, в идеале содержимое после внутреннего div должно появляться в новой строке без отступов.В Firefox это выглядит так, а в Chrome / IE - с отступом в тексте!Исходя из этого поведения, если я предполагаю, что этот фрагмент содержимого (из «оставшегося текста», показанного ниже) наследует атрибут стиля соответствующего div, это тоже не так;потому что наследуется только text-indent, а margin-top - нет!Не могли бы вы помочь мне понять, где я делаю неправильно?
Кстати, вот фрагмент HTML:
<div style="text-indent:50px; margin-top:100px">
Initial text in outer div. More text typed here. Still more text typed here. More and more text typed here. Still more text typed here just to fill the content so that the para wraps to more than one line. More filler text. More filler text. More filler text. More filler text. More filler text. More filler text. More filler text.
<div style="text-indent:0px;">Text in inner div. More text typed here. Still more text typed here. More and more text typed here. Still more text typed here just to fill the content so that the para wraps to more than one line. More filler text. More filler text. More filler text. More filler text. More filler text. More filler text. More filler text.</div>
remaining text in outer div. More text typed here. Still more text typed here. More and more text typed here. Still more text typed here just to fill the content so that the para wraps to more than one line. More filler text. More filler text. More filler text. More filler text. More filler text. More filler text. More filler text.
</div>
Спасибо
Srikanth