Closed MartijnHarmenzon closed 4 years ago
Managed to solve it like this:
<body class="flex flex-col h-screen">
<header>
My navbar here...
</header>
<main class="relative flex-grow">
<img class="absolute object-cover object-top h-full w-full" src="./img/xxx.webp" alt="">
</main>
<footer>
<div class="flex justify-center">
Footer content here...
</div>
</footer>
</body>
I would like to create a page with a fixed hearder (containing my navbar) a footer and a main area showing a image covering the whole area of the main. Does anyone have an example how to achieve this? I am trying with the following code, but not yet getting there.