Hello again,
I have the following very simple HTML document:
The <article> element has the propery "column-count: 2" set. Both the "H1" as well as the "div.blocked-content" have the "column-span: all" set. Only the <p> in between is rendered in two columns. The <p> element has also "margin" defined: 5cm to the top, 20cm to the bottom.
However, it appears as if the margin is ignored due to the surrounding elements having "column-span: all" set. Is this intended behaviour?
I have attached the input, as well as the output document.
Greetings,
John
I have the following very simple HTML document:
<!DOCTYPE HTML>
<html>
<head>
<style type="text/css" media="all">
body {
margin: 0;
padding: 0;
}
article {
column-count: 2;
}
h1 {
margin: 0;
column-span: all;
}
p {
margin: 5cm 0 20cm 0;
background-color: lightblue;
}
div.blocked-content {
background-color: green;
column-span: all;
}
</style>
</head>
<body>
<article>
<h1>First headline</h1>
<p>Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata...</p>
<div class="blocked-content">
image / table / figure...
</div>
</article>
</body>
</html>
The <article> element has the propery "column-count: 2" set. Both the "H1" as well as the "div.blocked-content" have the "column-span: all" set. Only the <p> in between is rendered in two columns. The <p> element has also "margin" defined: 5cm to the top, 20cm to the bottom.
However, it appears as if the margin is ignored due to the surrounding elements having "column-span: all" set. Is this intended behaviour?
I have attached the input, as well as the output document.
Greetings,
John
Edited by John