CSS Flex Masonery layout #55
-
How can we achieve, with sciter flex, such a layout? (masonery layout) Whith my example, in CSS3, in the browser we can see this: But it is seen like this in sciter-js scapp.exe: `
`.container {
/* Optional */ .item { div.item::before { /* Re-order items into 3 rows */ /* Force new columns */ body { font-family: sans-serif; } |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 2 replies
-
<html>
<head>
<title>Test</title>
<style>
body {
flow:vertical-wrap;
overflow-x:scroll-indicator;
border-spacing:1em;
}
body > div {
width:64px;
background:gold;
}
</style>
</head>
<body>
<div style="height:64px" />
<div style="height:48px" />
<div style="height:64px" />
<div style="height:64px" />
<div style="height:48px" />
<div style="height:64px" />
<div style="height:48px" />
<div style="height:64px" />
<div style="height:48px" />
<div style="height:64px" />
<div style="height:48px" />
<div style="height:64px" />
<div style="height:48px" />
</body>
</html> |
Beta Was this translation helpful? Give feedback.
-
Here is what I see here: |
Beta Was this translation helpful? Give feedback.
-
If you know upfront how columns are split then you can use
|
Beta Was this translation helpful? Give feedback.
-
I see. Thanks for the insight!
…___________________________________
*Martín Lombana*
*TODOLOGIC.COM <http://TODOLOGIC.COM> | APPS & MORE*
*+34 633 63 02 35 | *+34 946 759 137
*INSTAGRAM *→* @ <https://instagram.com/todologic>TODOLOGIC
<https://instagram.com/todologic>*
On Sun, 28 Mar 2021 at 23:13, Andrew ***@***.***> wrote:
If you know upfront how columns are split then you can use {clear:after |
before;} to force column wrapping:
<html>
<head>
<title>Test</title>
<style>
body {
flow:vertical-wrap;
overflow-x:scroll-indicator;
border-spacing:1em;
}
body > div {
width:64px;
background:gold;
}
body > div:nth-child(4) {clear:after;}
body > div:nth-child(8) {clear:after;}
</style>
</head>
<body>
<div style="height:64px" />
<div style="height:48px" />
<div style="height:64px" />
<div style="height:64px" />
<div style="height:48px" />
<div style="height:64px" />
<div style="height:48px" />
<div style="height:64px" />
<div style="height:48px" />
<div style="height:64px" />
<div style="height:48px" />
<div style="height:64px" />
<div style="height:48px" />
</body>
</html>
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#55 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AEMAOL7WNVWQJIB5CZPCAPTTF6LYXANCNFSM4Z6I5RJA>
.
|
Beta Was this translation helpful? Give feedback.
If you know upfront how columns are split then you can use
{clear:after | before;}
to force column wrapping: