私はそれぞれのヘッダーと段落が、自動的にフォーマットされるのではなく、1列だけ離れていることを制限して、空きがなくなったときに次の列に移動しようとしています。複数の列にまたがるのではなく、特定のコンテンツを1つの列に限定するにはどうすればよいですか?
.columns {
-webkit-column-count: 3;
-moz-column-count: 3;
column-count: 3;
}
.div1 {
width: 100%;
padding: 10px;
border-right: 2px solid;
border-left: 2px solid;
margin: 0;
background-color: white;
}
<div class="div1">
<div class="columns">
<h4>Landscaping</h4>
<p>As Northeast Ohio Landscapers, Hemlock Landscapes has been caring for customers and their properties throughout the Chagrin Valley since 1981.
Our core values:
Bring a positive attitude with you each and every day
Work hard, pitch in, be helpful and productive
Be fair and respectful with all people in all encounters</p>
<h4>Services</h4>
<p>When it comes to Residential Landscape Maintenance in Northeast Ohio, we have a pretty simple mission.
Our mission is to unite people in positive relationships to improve lives.
This includes not only our great customers but also our fantastic employees and vendors that we work with each and every day. If we are not improving your life then we are not living up to our mission.
Experienced in every facet of the landscape industry, we fulfill our one company… total care philosophy by meeting your every need in the following areas:
Residential Landscape Maintenance
Landscape Design/Installation
Plant Health Care</p>
<h4>Mission</h4>
<p>Whether you are new to the Chagrin Valley, switching landscape service providers, or need to add a service to your existing account, Hemlock Landscapes makes it easy for you.</p>
</div>
</div>
これは完璧に機能しました。 – ChaCol
Google Chromeで自分のウェブサイトを使用すると、このフォーマットは適用されなくなります。これをどうすれば解決できますか? – ChaCol
それはもはや適用されないという意味ですか?ブラウザーはプロパティを認識できませんでしたか?そしてもしそうなら、どちらのもの?それとも、CSSはもはや動作しませんか?これらのプロパティのテストはChromeで行われていたので、あなたの質問は私を少し困惑させます。 Probでは 'break-inside:avoidを使用しました。もしそうなら' display:inline-block;に切り替えて問題を解決しましたか? –