Firefox / Chrome / Opera / Etcでは、このCSSはうまく機能し、3つの列が並んでいます。IEでは、列は垂直であり、並んでいません。
これに対する簡単な修正/ハックは何ですか?ありがとう!
<style>
.col1 {
float: left;
width: 270px;
position: relative;
padding: 15px;
margin-bottom: 10px;
}
.col2 {
float: left;
width: 270px;
position: relative;
padding: 15px;
margin-bottom: 10px;
margin-left: 10px;
margin-right: 10px;
}
.col3 {
float: left;
width: 270px;
position: relative;
padding: 15px;
margin-bottom: 10px;
}
</style>
html:
<body>
<section class="col1">
<p>Lorem Ipsum is simply dummy text of
the printing and typesetting industry.</p>
</section>
<section class="col2">
<p>Lorem Ipsum is simply dummy text of
the printing and typesetting industry.</p>
</section>
<section class="col3">
<p>Lorem Ipsum is simply dummy text of
the printing and typesetting industry.</p>
</section>
</body>