Open centratelemedia opened 2 years ago
@milahu i have added style after above script..., but this working on svelte not sveltekit
devtools inspect:
<main>
element:
so, the <main>
element needs more height
concept for solution:
<html>
<head>
<style>
body { height: 100vh; margin: 0; display: flex; flex-direction: column; }
body > main { flex-grow: 1; }
body > main { outline: solid 1px red; } /* debug */
</style>
</head>
<body>
<header>... header ...</header>
<main>... main ...</main>
<footer> ... footer ... </footer>
</body>
</html>
result:
keywords:
@milahu thank it work, but howto apply border in certain column or row,?
howto apply border in certain column or row,?
css classes?
see https://github.com/milahu/svelte-layout-resizable#style
example
<script>
import L from 'svelte-layout-resizable';
</script>
<L row>
<L>cell 1 in row</L>
<L column class="custom-column-container">
<L>cell 2.1 in column</L>
<L>cell 2.2 in column</L>
<L>cell 2.3 in column</L>
</L>
<L>cell 3 in row</L>
</L>
<style>
/* layout */
/* ... default style ... */
:global(.layout-column.custom-column-container > .layout-cell > div > .frame) {
/* frame color and border */
background-color: red;
border: solid 2px green;
}
</style>
please use devtools to find the css selector
howto implement on sveltekit,? i try without success...