-
Notifications
You must be signed in to change notification settings - Fork 0
CSS
alex [dot] kramer [at] g_m_a_i_l [dot] com edited this page Apr 10, 2025
·
6 revisions
.container {
-ms-overflow-style: none; /* Internet Explorer 10+ */
scrollbar-width: none; /* Firefox */
}
.container::-webkit-scrollbar {
display: none; /* Safari and Chrome */
}
<style>
.container {
display: flex;
flex-direction: column;
height: 100%;
width: 500px;
background-color: magenta;
}
.content {
flex: 1;
overflow-y: scroll;
display: flex;
flex-direction: column;
align-items: center;
}
.thing {
font-size: 64pt;
color: yellow;
}
html, body {
height: 100%;
}
header {
background-color: chartreuse;
}
footer {
background-color: cyan;
}
</style>
<div class="container" >
<header id="header" >This is a header</header>
<div class="content" >
<div class="thing">asdf</div>
<div class="thing">asdf</div>
<div class="thing">asdf</div>
<div class="thing">asdf</div>
<div class="thing">asdf</div>
<div class="thing">asdf</div>
<div class="thing">asdf</div>
<div class="thing">asdf</div>
</div>
<footer id="footer" >This is a footer</footer>
</div>
.debug-panel {
border: 1px dashed magenta;
padding: 6px;
background: lightcyan;
position: fixed;
width: 600px;
overflow: auto;
bottom: 0;
right: 0;
}
transition: transform 0.3s ease, box-shadow 0.3s ease;
&:hover {
transform: translateY(-2px);
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}